Test Failed
Push — master ( d500d4...278979 )
by Alexander
06:17
created

TokenableEntity::getText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Wearesho\Yii\Entities;
4
5
use Wearesho\Yii\Interfaces\TokenableEntityInterface;
6
7
/**
8
 * @since 1.2.2
9
 */
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
27 1
    {
28
        return $this->recipient;
29 1
    }
30
31
    public function getText(): string
32 1
    {
33
        return $this->text;
34 1
    }
35
36
    public function getTokenType(): string
37
    {
38
        return $this->tokenType;
39
    }
40
}
41