@param AirlineInterface|array $value объект данных длинной записи или ассоциативный массив с данными

@return CreatePaymentRequestBuilder
358247
public function setAirline($value)
    {
        if (is_array($value)) {
            $this->airline->fromArray($value);
        } elseif ($value instanceof AirlineInterface) {
            $this->airline = clone $value;
        } else {
            throw new InvalidPropertyValueTypeException('Invalid receipt value type', 0, 'receipt', $value);
        }


        return $this;
    }
127659
protected function prepareAnrEquivalentQuery($value)
    {
        return $this->orFilter(function (Builder $query) use ($value) {
            $locateBy = [
                $this->schema->name(),
                $this->schema->email(),
                $this->schema->userId(),
                $this->schema->lastName(),
                $this->schema->firstName(),
                $this->schema->commonName(),
                $this->schema->displayName(),
            ];

            foreach ($locateBy as $attribute) {
                $query->whereEquals($attribute, $value);
            }
        });
    }
364005
public function addDealerShedulesId($value)
    {
        $currentArray = $this->getDealerShedulesIds();
        $currentArray []= $value;
        $this->setDealerShedulesIds($currentArray);

        return $this;
    }
30320
public function setSmsParam($value)
    {
        if (is_array($value)) {
            $value = Support::jsonStr($value);
        }

        $this->params['sms_param'] = $value;

        return $this;
    }
398289
public function addDealerShedulesVersion($value)
    {
        $currentArray = $this->getDealerShedulesVersions();
        $currentArray []= $value;
        $this->setDealerShedulesVersions($currentArray);

        return $this;
    }
58951
public function setFrom($value)
    {
        if (is_array($value)) {
            $value = new Person($value);
        }
        return $this->setParameter('from', $value);
    }
312942
public function setFunding($value)
    {
        if ($value && !$value instanceof MerchantFunding) {
            $value = new MerchantFunding($value);
        }

        return $this->setParameter('funding', $value);
    }
480063
public function setBuild($value)
    {
        // Is this an instance of Build?
        if ($value instanceof \PHPCI\Model\Build) {
            return $this->setBuildObject($value);
        }

        // Is this an array representing a Build item?
        if (is_array($value) && !empty($value['id'])) {
            return $this->setBuildId($value['id']);
        }

        // Is this a scalar value representing the ID of this foreign key?
        return $this->setBuildId($value);
    }
276467
function setValue($value) {
        $values = (array) $value;
        foreach ($values as $onevalue) {
            if (($this->tags || $this->ajax) &&
                    (!$this->optionExists($onevalue)) &&
                    ($onevalue !== '_qf__force_multiselect_submission')) {
                $this->addOption($onevalue, $onevalue);
            }
        }
        return parent::setValue($value);
    }
1225564
public function setPaymentMethodData($value)
    {
        if ($value === null || $value === '') {
            $this->_paymentMethodData = null;
        } elseif (is_object($value) && $value instanceof AbstractPaymentData) {
            $this->_paymentMethodData = $value;
        } else {
            throw new InvalidPropertyValueTypeException(
                'Invalid paymentMethodData value type in CreatePaymentRequest',
                0,
                'CreatePaymentRequest.paymentMethodData',
                $value
            );
        }
    }
1098860
protected function createReferenceFromArray(array &$value)
    {
        $uri = new Uri($value['$ref']);
        $mimeType = null;
        if (array_key_exists('$type', $value) && is_string($value['$type'])) {
            $mimeType = $value['$type'];
        }

        return $this->register(
            $value,
            new Value\ReferenceValue($uri, $mimeType)
        );
    }
1029919
public static function fromArray(array $value)
    {
        $language = null;
        $culture = null;

        if (!empty($value['language'])) {
            $language = $value['language'];
        } elseif ($value[0]) {
            $language = $value[0];
        }

        if (!empty($value['culture'])) {
            $culture = $value['culture'];
        } elseif ($value[1]) {
            $culture = $value[1];
        }

        return new static($language, $culture);
    }
500377
public function addConstructorValue($value)
        {
            $endPoint =& $this->_getEndPoint();

            if (!isset($endPoint['args'])) {
                $endPoint['args'] = array();
            }

            $endPoint['args'][] = array(
                'type' => 'value',
                'item' => $value
            );

            return $this;
        }
1028234
protected function Add( $value )
	{
	    switch ( $value->GetValueCode() )
	    {
	        case DayTimeDurationProxyFactory::Code:
	        	/**
	        	 * @var DayTimeDurationProxy $value
	        	 */
	        	// Clone the DateValue contained in the proxy or the original is changed
	        	$clone = new TimeValue( clone $this->_value->Value, ! $this->_value->IsLocal );
	        	return new TimeProxy( TimeValue::AddDayTimeDuration( $clone, $value->getValue() ) );
	        	// return new TimeProxy( TimeValue::Add( $this->_value, /* DayTimeDurationValue */ $value->getValue() ) );

	        default:
	            throw XPath2Exception::withErrorCodeAndParams( "XPTY0004", Resources::BinaryOperatorNotDefined,
					array(
						"op:add",
						SequenceType::WithTypeCodeAndCardinality( SequenceType::GetXmlTypeCodeFromObject( $this->_value), XmlTypeCardinality::One ),
						SequenceType::WithTypeCodeAndCardinality( SequenceType::GetXmlTypeCodeFromObject( $value->getValue() ), XmlTypeCardinality::One )
					)
				);
	    }
	}
315937
public static function factory($value)
    {
        if (is_array($value)) {
            return new NativeArrayGateway($value);
        } elseif (is_object($value)) {
            return new NativeObjectGateway($value);
        }

        return $value;
    }
142585
public function createEmails(array $value): array
    {
        return array_map(function ($data) {
            if ($data instanceof EmailNotification) {
                return $data;
            }

            return new EmailNotification((array) $data);
        }, $value);
    }
449176
protected function Add( $value )
	{
		switch ( $value->GetValueCode() )
		{
			case YearMonthDurationProxyFactory::Code:
				/**
				 * @var YearMonthDurationProxy $value
				 */
				// return new YearMonthDurationProxy( new YearMonthDurationValue( $this->_value->HighPartValue + (/* YearMonthDurationValue */ $value->getValue() )->HighPartValue));
				$clone = new YearMonthDurationValue( $this->_value->Value );
				$clone->Add( /* YearMonthDurationValue */ $value->getValue() );
				return new YearMonthDurationProxy( $clone );

			case DateTimeProxyFactory::Code:
				/**
				 * @var DateTimeProxy $value
				 */
				return new DateTimeProxy( DateTimeValue::AddYearMonthDuration( $value->getValue(), $this->_value ) );
				// return new DateTimeProxy( DateTimeValue::Add( /* DateTimeValue */ $value->getValue(), $this->_value ) );

			case DateProxyFactory::Code:
				/**
				 * @var DateProxy $value
				 */
				return new DateProxy( DateValue::AddYearMonthDuration( $value->getValue(), $this->_value ) );
				// return new DateProxy( DateValue::Add( /*DateValue */ $value->getValue(), $this->_value ) );

			default:
				throw XPath2Exception::withErrorCodeAndParams( "XPTY0004", Resources::BinaryOperatorNotDefined,
					array(
						"op:add",
						SequenceType::WithTypeCodeAndCardinality(SequenceType::GetXmlTypeCodeFromObject( $this->_value ), XmlTypeCardinality::One ),
						SequenceType::WithTypeCodeAndCardinality(SequenceType::GetXmlTypeCodeFromObject( $value->getValue() ), XmlTypeCardinality::One )
					)
				);
		}
	}