{@inheritdoc}

@param string|array $mark
@param mixed        $value (optional)

@return self

@example self::mark('no-broadcast')->fire('users.updated', [])
544700
public function mark($mark, $value=null)
     {
        $marks = $this->matchingListener->markToArray($mark, $value, $this->knownMarks);
        return new BusWithMarkSupport($this, $marks);
     }
554706
static public function setCache( $value )
	{
		$old = self::$cache;
		self::$cache = (boolean) $value;

		return $old;
	}
74893
public function setValue($value)
    {
        if (is_array($value)) {
            foreach ($value as $childKey => $childValue) {
                $this->children[$childKey] = new static($childValue);
            }
            $this->value = null;
        } else {
            $this->value = $value;
            $this->children = array();
        }
        return $this;
    }
825885
public function setValue($value, $index = null)
    {
        if ($index === null) {
            $this->value = Arr::cast($value);
        }
        else {
            $this->value[$index] = $value;
        }
        return $this;
    }
1110129
protected function checkParsedMark($mark, $value)
    {
        if (strpos($mark, '!') === 0) {
            throw new InvalidArgumentException("Leading ! cannot be used in associative marks.");
        }

        if (!is_bool($value) && !is_string($value)) {
            throw new UnsupportedParameterException("This MatchingListener can only match boolean and strings. You added for $mark a value of " . Type::of($value));
        }
    }
1028737
public function setValue($value)
    {
        $this->checked = $value;
        if ((null !== $this->checked) && ($this->hasChildren())) {
            foreach ($this->childNodes as $child) {
                if ($child instanceof Input\Radio) {
                    if ($child->getValue() == $this->checked) {
                        $child->check();
                    } else {
                        $child->uncheck();
                    }
                }
            }
        }
        return $this;
    }
778728
public function update(Expression $value = null)
    {
        if ($this->value === $value) {
            return $this;
        }

        return new self($value);
    }
965332
public function setMessages($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['Messages']['FieldValue'] = $value;
        return $this;
    }
289278
public function setValue($value) {
		Argument::i()->test(1, 'scalar', 'array', 'null');
		
		if(!is_array($value)) {
			$value = func_get_args();
		}
		
		$this->value = $value;
			
		return $this;
	}
449417
public function exnor($value) {


        if($this->value !== null){
            return $this->markErrorIf($value === null);
        }
        if($value !== null){

            return $this->markErrorIf($this->value === null, false);
        }
        return $this;
    }
1287355
public function setData(
        array $value)
    {
        $this->_cache = $value;

        $newObjectData = [];
        foreach ($this->_cache as $k => $v) {
            $newObjectData[$k] = is_object($v) && $v instanceof LazyJsonMapper
                               ? $v->asArray() // Throws.
                               : $v; // Is already a valid value.
        }

        $this->assignObjectData($newObjectData); // Throws.

        return $this;
    }
45677
public function setUnloadDoctrineEveryTick($value)
    {
        $this->unloadDoctrineEveryTick = max(0, (int) $value);
        $this->ticksUntilUnload = $this->unloadDoctrineEveryTick ?: null;

        return $this;
    }
1303951
public function setXmlValue(array $value)
    {
        $value = array_map(
            function ($value) {
                return 'true' === $value;
            },
            $value
        );
        parent::setXmlValue($value);
    }
1290182
public function withAttribute(string $offset, $value) : self
    {
        if ($this->restricted) {
            if (!in_array($offset, array_keys($this->attributes))) {
                $message = sprintf('%s it not an allowed attribute on this object. The only allowed attributes are %s', $offset, implode(',', array_keys($this->attributes)));
                throw new \InvalidArgumentException($message);
            }
        }

        $that = clone($this);
        $that->attributes[$offset] = $value;
        return $that;
    }
1110628
public function update($value)
        {
            $this->validate($value);
            if ($this->chaining) {
                $this->chain = $value;
            } else {
                $this->current = $value;
            }
            return $this;
        }
718219
public function setReceipt($value)
    {
        if (is_array($value)) {
            $this->receipt->fromArray($value);
        } elseif ($value instanceof ReceiptInterface) {
            $this->receipt = clone $value;
        } else {
            throw new InvalidPropertyValueTypeException('Invalid receipt value type', 0, 'receipt', $value);
        }

        return $this;
    }
1178404
public function remove($value) {
		
		if($this->_ReadOnly){
			throw new ReadOnlyException(\get_called_class() . ' is read only');
		}
		
		if(($key = \array_search($value, $this->_Arr)) !== false){
			\array_splice($this->_Arr, $key, 1);
		}
		
		return $this;
		
	}