_type = (string)$value; } } /** * @inheritdoc * @return string */ public function getType() { return $this->_type; } /** * @inheritdoc * @param string $value Идентификатор магазина */ public function setAccountId($value) { if ($value === null || $value === '') { $this->_accountId = null; } elseif (!TypeCast::canCastToString($value)) { throw new InvalidPropertyValueTypeException( 'Invalid value type for "accountId" parameter in Source', 0, 'source.accountId' ); } else { $this->_accountId = (string)$value; } } /** * @inheritdoc * @return string|null */ public function getAccountId() { return $this->_accountId; } /** * @inheritdoc * @param string $value Идентификатор приложения */ public function setClientId($value) { if ($value === null || $value === '') { $this->_clientId = null; } elseif (!TypeCast::canCastToString($value)) { throw new InvalidPropertyValueTypeException( 'Invalid value type for "accountId" parameter in Source', 0, 'source.accountId' ); } else { $this->_clientId = (string)$value; } } /** * @inheritdoc * @return string|null */ public function getClientId() { return $this->_clientId; } /** * @inheritdoc * @param string $value Название приложения */ public function setClientName($value) { if ($value === null || $value === '') { $this->_clientName = null; } elseif (!TypeCast::canCastToString($value)) { throw new InvalidPropertyValueTypeException( 'Invalid value type for "accountId" parameter in Source', 0, 'source.accountId' ); } else { $this->_clientName = (string)$value; } } /** * @inheritdoc * @return string|null */ public function getClientName() { return $this->_clientName; } }