for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Trello\Model;
/**
* @codeCoverageIgnore
*/
class Token extends AbstractObject implements TokenInterface
{
protected $apiName = 'token';
protected $loadParams = array(
'fields' => 'all',
'webhooks' => true,
);
* {@inheritdoc}
public function getIdentifier()
return $this->data['identifier'];
}
public function getMemberId()
return $this->data['idMember'];
public function getMember()
return new Member($this->client, $this->data['idMember']);
public function getDateOfCreation()
return new \DateTime($this->data['dateCreated']);
public function getDateOfExpiry()
return new \DateTime($this->data['dateExpires']);
public function getPermissions()
return $this->data['permissions'];
public function getWebhooks()
$webhooks = array();
foreach ($this->data['webhooks'] as $webhook) {
$webhooks[] = new Webhook($this->client, $webhook['id']);
return $webhooks;