Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class TenantTokenVerificationResult extends VerificationResult |
||
11 | { |
||
12 | /** |
||
13 | * @var bool |
||
14 | */ |
||
15 | private $isTenant; |
||
16 | |||
17 | /** |
||
18 | * TenantTokenVerificationResult constructor. |
||
19 | * |
||
20 | * @param array $params |
||
21 | */ |
||
22 | public function __construct(array $params) |
||
23 | { |
||
24 | parent::__construct($params); |
||
25 | |||
26 | $this->validateParams($params, ['isTenant']); |
||
27 | |||
28 | $this->setIsTenant($params['isTenant']); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return bool |
||
33 | */ |
||
34 | public function isTenant(): bool |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param bool $isTenant |
||
41 | */ |
||
42 | private function setIsTenant(bool $isTenant) |
||
47 |