Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class TokenableEntity implements TokenableEntityInterface |
||
11 | { |
||
12 | public function __construct( |
||
13 | protected string $recipient, |
||
14 | protected string $text, |
||
15 | protected string $tokenType, |
||
16 | protected array $data |
||
17 | ) |
||
18 | { |
||
19 | } |
||
20 | |||
21 | 2 | public function getTokenData(): array |
|
22 | { |
||
23 | 2 | return $this->data; |
|
24 | 2 | } |
|
25 | 2 | ||
26 | public function getRecipient(): string |
||
29 | 1 | } |
|
30 | |||
31 | public function getText(): string |
||
32 | 1 | { |
|
33 | return $this->text; |
||
34 | 1 | } |
|
35 | |||
36 | public function getTokenType(): string |
||
39 | } |
||
40 | } |
||
41 |