Test Failed
Push — master ( c65274...a98fd4 )
by Alexander
18:33
created

TokenableEntityMock   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 41
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Wearesho\Yii\Tests\Mocks;
6
7
use Wearesho\Yii\Interfaces\TokenableEntityInterface;
8
9
class TokenableEntityMock implements TokenableEntityInterface
10
{
11
    protected string $tokenRecipient;
12
13
    protected array $tokenData;
14
15
    /**
16
     * @return array
17
     */
18
    public function getTokenData(): array
19
    {
20
        return $this->tokenData;
21
    }
22
23
    /**
24
     * @param array $tokenData
25
     */
26
    public function setTokenData(array $tokenData)
27
    {
28
        $this->tokenData = $tokenData;
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getTokenRecipient(): string
35
    {
36
        return $this->tokenRecipient;
37
    }
38
39
    /**
40
     * @param string $tokenRecipient
41
     */
42
    public function setTokenRecipient(string $tokenRecipient)
43
    {
44
        $this->tokenRecipient = $tokenRecipient;
45
    }
46
}
47