_type; } /** * Устанавливает тип сценария подтверждения * @param string $value */ protected function setType($value) { if ($value === null || $value === '') { throw new EmptyPropertyValueException( 'Empty value for "type" parameter in SelfEmployedConfirmation', 0, 'confirmation.type' ); } if (!TypeCast::canCastToEnumString($value)) { throw new InvalidPropertyValueTypeException( 'Invalid value type for "type" parameter in SelfEmployedConfirmation', 0, 'confirmation.type', $value ); } if (!SelfEmployedConfirmationType::valueExists($value)) { throw new InvalidPropertyValueException( 'Invalid value for "type" parameter in SelfEmployedConfirmation', 0, 'confirmation.type', $value ); } $this->_type = (string)$value; } }