| 1 | <?php |
||
| 15 | class Token extends AbstractResource implements \OpenStack\Common\Auth\Token |
||
| 16 | { |
||
| 17 | /** @var \DateTimeImmutable */ |
||
| 18 | public $issuedAt; |
||
| 19 | |||
| 20 | /** @var string */ |
||
| 21 | public $id; |
||
| 22 | |||
| 23 | /** @var \DateTimeImmutable */ |
||
| 24 | public $expires; |
||
| 25 | |||
| 26 | /** @var Tenant */ |
||
| 27 | public $tenant; |
||
| 28 | |||
| 29 | protected $aliases = ['issued_at' => 'issuedAt']; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritDoc} |
||
| 33 | */ |
||
| 34 | 2 | public function populateFromResponse(ResponseInterface $response) |
|
| 40 | |||
| 41 | 1 | public function getId() |
|
| 42 | { |
||
| 43 | 1 | return $this->id; |
|
| 44 | } |
||
| 45 | |||
| 46 | 2 | public function hasExpired() |
|
| 50 | } |
||
| 51 |