_id; } /** * Устанавливает идентификатор самозанятого в ЮKassa. * * @param string $id Идентификатор самозанятого в ЮKassa. * * @return $this */ public function setId($id) { if (!TypeCast::canCastToString($id)) { throw new InvalidPropertyValueTypeException('Invalid PayoutSelfEmployed id value type', 0, 'PayoutSelfEmployed.id', $id); } $length = mb_strlen($id, 'utf-8'); if ($length < SelfEmployedInterface::MIN_LENGTH_ID || $length > SelfEmployedInterface::MAX_LENGTH_ID) { throw new InvalidPropertyValueException('Invalid PayoutSelfEmployed id value', 0, 'PayoutSelfEmployed.id', $id); } $this->_id = (string)$id; return $this; } }