/** * * */ public function __construct(ChainableInterface $chain, array $arguments = array()) { if (!array_key_exists(0, $arguments)) { $arguments[0] = $chain->getSDK()->getAuthToken()->getAccountId(); } parent::__construct($chain, $arguments); }
/** * * */ public function __construct(ChainableInterface $chain, array $arguments = array()) { if (!array_key_exists(0, $arguments)) { $arguments[0] = $chain->getSDK()->getAuthToken()->getAccountId(); } parent::__construct($chain, $arguments); $this->setTokenValue($this->getEntityIdName(), $this->getId()); }
/** * * */ public function fetch($append_uri = null) { $id = $this->getId(); try { parent::fetch($append_uri); } catch (ServerErrorResponseException $e) { $this->setEntity(new stdClass()); $this->new_number = TRUE; } $this->setId($id); return $this; }
/** * * */ public function __construct(ChainableInterface $chain, array $arguments = array()) { parent::__construct($chain, $arguments); $this->readOnly(); }