Skip to content

Commit da7fbca

Browse files
committed
[UC-3] Add UserComApiAwareTrait and related interface
1 parent f770279 commit da7fbca

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace BitBag\SyliusUserComPlugin\Entity;
6+
7+
interface UserComApiAwareInterface
8+
{
9+
public function getUserComUrl(): string;
10+
11+
public function setUserComUrl(string $userComUrl): void;
12+
13+
public function getUserComApiKey(): string;
14+
15+
public function setUserComApiKey(string $userComApiKey): void;
16+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace BitBag\SyliusUserComPlugin\Entity;
6+
7+
trait UserComApiAwareTrait
8+
{
9+
private string $userComUrl;
10+
11+
private string $userComApiKey;
12+
13+
public function getUserComUrl(): string
14+
{
15+
return $this->userComUrl;
16+
}
17+
18+
public function setUserComUrl(string $userComUrl): void
19+
{
20+
$this->userComUrl = $userComUrl;
21+
}
22+
23+
public function getUserComApiKey(): string
24+
{
25+
return $this->userComApiKey;
26+
}
27+
28+
public function setUserComApiKey(string $userComApiKey): void
29+
{
30+
$this->userComApiKey = $userComApiKey;
31+
}
32+
}

0 commit comments

Comments
 (0)