Test Failed
Push — master ( 278979...0dec93 )
by Alexander
18:41
created

TokenableEntity::getOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
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
        protected array $deliveryOptions = []
18
    )
19
    {
20
    }
21 2
22
    public function getTokenData(): array
23 2
    {
24 2
        return $this->data;
25 2
    }
26
27 1
    public function getRecipient(): string
28
    {
29 1
        return $this->recipient;
30
    }
31
32 1
    public function getText(): string
33
    {
34 1
        return $this->text;
35
    }
36
37
    public function getTokenType(): string
38
    {
39
        return $this->tokenType;
40
    }
41
42
    public function getOptions(): array
43
    {
44
        return $this->deliveryOptions;
45
    }
46
}
47