| 1 | <?php |
||
| 8 | class IsLoggedDataSource |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var AuthorizationChecker |
||
| 12 | */ |
||
| 13 | private $authorizationChecker; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * IsLoggedDataSource constructor. |
||
| 17 | * |
||
| 18 | * @param AuthorizationChecker $authorizationChecker |
||
| 19 | */ |
||
| 20 | public function __construct(AuthorizationChecker $authorizationChecker) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Check actual status of current user return true if logged false if not. |
||
| 27 | * |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | public function getLoggedStatus() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | public function getLoggedStatusFormParams() |
||
| 58 | } |
||
| 59 |