Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
24 | class ResourceOwner |
||
25 | { |
||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | protected $authenticated = false; |
||
30 | |||
31 | public function __construct(bool $authenticated = false) |
||
32 | { |
||
33 | $this->authenticated = $authenticated; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return bool |
||
38 | */ |
||
39 | public function isAuthenticated(): bool |
||
40 | { |
||
41 | return $this->authenticated; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @param bool $authenticated |
||
46 | */ |
||
47 | public function setAuthenticated(bool $authenticated): void |
||
50 | } |
||
51 | } |