Set sepa sequence type
@param string $value
@param bool $isDirty new value is dirty, defaults to true
332030
protected function setSepaSequenceTypeAttr($value = null, $isDirty = true)
    {
		$value = strtoupper($value);
        if ($value !== null && $value !== '' && !in_array($value, $this->_sepaSequenceTypes)) {
            throw new InvalidSequenceTypeException('Invalid sequence type: ' . $value);
        }

        $this->sepaSequenceType = $value;
        $this->setDirtyState($isDirty, 'sepaSequenceType');
    }
903821
protected function setHistoryAttr(HistoryArray $value = null, $isDirty = true)
    {
        if (!is_null($value)) {
            $this->history = $value;
            $this->setDirtyState($isDirty, 'history');
        }
    }
357909
public function setCapture($value)
    {
        if ($value === null || $value === '') {
            $this->_capture = null;
        } elseif (TypeCast::canCastToBoolean($value)) {
            $this->_capture = (bool)$value;
        } else {
            throw new InvalidPropertyValueTypeException(
                'Invalid capture value type in CreatePaymentRequest', 0, 'CreatePaymentRequest.capture', $value
            );
        }
    }
757941
public function setRawValue( $value )
	{
		if ( is_null( $value ) )
			$this->_value = CoreFuncs::$False;
		else
			$this->_value = $value;

		$this->_xmlType = null;
	}
1038694
public function setSortDirection(\AgentSIB\Diadoc\Api\Proto\SortDirection $value = null)
    {
        $this->SortDirection = $value;
    }
51409
public function setDefaultType($value, $dc)
	{
		if (!$value)
		{
			if ($dc->activeRecord !== null)
			{
				$ptable =  $dc->activeRecord->ptable;
				$pid = $dc->activeRecord->pid;
			}
			else
			{
				return $value;
			}
			
			// Try to find content block elements for the theme
			$objLayout = \LayoutModel::findById(\Agoat\CustomContentElementsBundle\Contao\Controller::getLayoutId($ptable, $pid));	
			$objDefault = \ElementsModel::findDefaultPublishedElementByPid($objLayout->pid);
			
			// if no default content element is found 
			if ($objDefault === null)
			{
				if (\Config::get('hideLegacyCTE'))
				{
					$objDefault = \ElementsModel::findFirstPublishedElementByPid($objLayout->pid);
				}
				
				if ($objDefault === null)
				{
					$objDefault = new \stdClass();
					$objDefault->alias = 'text';
				}
			}

			$objContent = \ContentModel::findByPk($dc->id);

			$objContent->type = $objDefault->alias;
			$objContent->save();
				
			$this->redirect(\Environment::get('request'));
		}
	
		return $value;
	}
440339
public function setType($value)
    {
        $this->_validateNotNull('Type', $value);
        $this->_validateString('Type', $value);

        if ($this->data['type'] === $value) {
            return;
        }

        $this->data['type'] = $value;

        $this->_setModified('type');
    }
170429
protected function setValue($value)
    {
        if (!is_string($value)) {
            throw InvalidTypeException::fromMessageAndPrototype("Value must be a string", static::prototype());
        }

        if(!mb_check_encoding($value, 'UTF-8')) {
            throw InvalidTypeException::fromMessageAndPrototype("Value must be a UTF-8 encoded", static::prototype());
        }

        $this->value = $value;
    }
928790
protected function isDifferent($value, $compareField, $field)
    {
        is_array($compareField) && $compareField = $compareField[0];
        return isset($this->data[$field]) && isset($this->data[$compareField]) && $this->data[$field] != $this->data[$compareField];
    }
72475
public static function setByPath(&$data, $paths, $value, $separator = '/', $type = 'array')
    {
        if (empty($paths)) {
            return false;
        }

        $args = is_array($paths) ? $paths : explode($separator, $paths);

        /**
         * A closure as inner function to create data store.
         *
         * @param $type
         *
         * @return  array
         *
         * @throws \InvalidArgumentException
         */
        $createStore = function ($type) {
            if (strtolower($type) === 'array') {
                return [];
            }

            if (class_exists($type)) {
                return new $type();
            }

            throw new \InvalidArgumentException(sprintf('Type %s not supported of class not exists', $type));
        };

        $dataTmp = &$data;

        foreach ($args as $arg) {
            if (is_object($dataTmp)) {
                if (empty($dataTmp->$arg)) {
                    $dataTmp->$arg = $createStore($type);
                }

                $dataTmp = &$dataTmp->$arg;
            } elseif (is_array($dataTmp)) {
                if (empty($dataTmp[$arg])) {
                    $dataTmp[$arg] = $createStore($type);
                }

                $dataTmp = &$dataTmp[$arg];
            } else {
                $dataTmp = &$createStore($type);
            }
        }

        $dataTmp = $value;

        return true;
    }
1202096
public function offsetSet($offset, $value)
    {
        $this->checkTypeWrapper($value);

        parent::offsetSet($offset, $value);
    }
50164
public function setIsNew($value)
    {
        $value = ($value == true) ? 1 : 0;

        if ($this->data['is_new'] === $value) {
            return;
        }

        $this->data['is_new'] = $value;

        $this->_setModified('is_new');
    }
415425
protected function setDetailsAttr(DetailArray $value = null, $isDirty = true)
    {
        if (!is_null($value)) {
            $this->details = $value;
            $this->setDirtyState($isDirty, 'details');
        }
    }
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
            );
        }
    }
867761
protected function setSendMethodAttr($value, $isDirty = true)
    {
        if (!in_array($value, array('hand', 'email', 'post'))) {
            throw new InvalidMethodException('Invalid send method: ' . $value);
        }

        $this->sendMethod = $value;
        $this->setDirtyState($isDirty, 'sendMethod');
    }
1045912
protected function _initValue($value = null, $type = self::T_TEXT)
    {
        switch ($type) {
            case self::T_TEXT:
                $this->rawValue = $value;
                break;
            case self::T_RAW:
                $this->value = $value;
                break;
        }
    }
348463
public function setFlashData($newdata, $value = '')
    {
        if (is_string($newdata)) {
            $newdata = [$newdata => $value];
        }

        if (!empty($newdata)) {
            foreach ($newdata as $key => $val) {
                $this->newFlashData[$key] = $val;
            }
        }
    }