| Total Complexity | 8 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class AuthorizationMiddleware implements Middleware |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $expirationPeriod; |
||
| 14 | |||
| 15 | public function __construct($expirationPeriod = '1 day') |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | public function execute($command, callable $next) |
||
| 45 | |||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param User $user |
||
| 50 | * |
||
| 51 | * @return bool |
||
| 52 | */ |
||
| 53 | private function isSecureExpired(User $user) |
||
| 67 |