| 1 | <?php |
||
| 8 | class Token extends AbstractObject implements TokenInterface |
||
| 9 | { |
||
| 10 | protected $apiName = 'token'; |
||
| 11 | |||
| 12 | protected $loadParams = array( |
||
| 13 | 'fields' => 'all', |
||
| 14 | 'webhooks' => true, |
||
| 15 | ); |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | */ |
||
| 20 | public function getIdentifier() |
||
| 21 | { |
||
| 22 | return $this->data['identifier']; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function getMemberId() |
||
| 29 | { |
||
| 30 | return $this->data['idMember']; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function getMember() |
||
| 37 | { |
||
| 38 | return new Member($this->client, $this->data['idMember']); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function getDateOfCreation() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function getDateOfExpiry() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * {@inheritdoc} |
||
| 59 | */ |
||
| 60 | public function getPermissions() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritdoc} |
||
| 67 | */ |
||
| 68 | public function getWebhooks() |
||
| 78 | } |
||
| 79 |