@param string $scene
@param string $value

@return HasSceneGuard
333058
public function addSceneGuard(string $scene, string $value): self
    {
        $this->scenes[$scene] = $this->getSceneGuard($scene);

        if (!in_array($value, $this->scenes[$scene], true)) {
            $this->scenes[$scene][] = $value;
        }

        return $this;
    }
40233
public function setCoreManagerJsCacheFileLocking($value)
    {
        $this->setFieldName('manager_js_cache_file_locking');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1320139
protected function guard($value)
    {
        $currency = Intl::getCurrencyBundle()->getCurrencyName($value);

        if (null === $currency) {
            throw new InvalidCurrencyException($value);
        }
    }
1135715
public function gt($value) {
        $this->rule = $value;
        $this->check_role = 'gt';
        $result = !is_null($this->value) && $this->value > $value;
        $this->checkResult($result);
        return $this;
    }
437644
public function setCoreUdpermsAllowroot($value)
    {
        $this->setFieldName('udperms_allowroot');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1035978
public function with($value): ValidableInterface
    {
        parent::with($value);
        
        if (false === ($value instanceof EntityInterface)) {
            throw new ValidatorException(sprintf('Validator accept only (%s) objects', EntityInterface::class));
        }
        
        return $this;
    }
104546
public function setAfterAttemptPolicy($value)
    {
        if (!in_array(
            $value,
            [self::AFTER_ATTEMPT_POLICY_NONE, self::AFTER_ATTEMPT_POLICY_CHANGE_RENEWAL_TIME],
            true
        )) {
            throw new DomainException('Invalid after attempt policy');
        }

        return $this->setAttribute('afterAttemptPolicy', $value);
    }
283217
public function with_value( $value ) {
		if ( $this->value === $value ) {
			return $this;
		}

		$cloned_token        = clone $this;
		$cloned_token->value = $value;

		return $cloned_token;
	}
159080
public function setPromptPolicy($value): self
    {
        if (!in_array($value, self::promptPolicies(), true)) {
            throw new DomainException(sprintf(self::UNEXPECTED_POLICY, implode(', ', self::promptPolicies())));
        }

        return $this->setAttribute('promptPolicy', $value);
    }
512650
protected function setBackgroundPositionXProperty( $value, $priority = self::PRIORITY_NORMAL )
    {
        $x = (string) $value;
        $y = (string) $this->getRawPropertyValue( 'background-position-y' );

        if ( '' !== $x && '' !== $y )
        {
            $this->setRawProperty(
                'background-position',
                $x . ' ' . $y,
                $priority ?: $this->getRawPropertyPriority(
                    'background-position-y'
                )
            );
        }

        return $this->setRawProperty( 'background-position-x', $x, $priority );
    }
201054
public function sceneGuard(array $data, string $scene): array
    {
        return $this->guardFilter($data, $this->getSceneGuard($scene));
    }
1247004
public function filter($value)
    {
        if ($value instanceof VisibilityInterface
            && !$this->builder->isVisibilityAllowed($value->getVisibility())
        ) {
            return null;
        }

        return $value;
    }
1276489
public function set($name, $value = null, $namespace = '')
	{
		if ($this->_state !== self::STATE_ACTIVE) {
			throw new LibSessionsException("Session isn't active!\n");
		}

		$namespace = empty($namespace) ? $this->_namespace : $namespace;

		if (is_null($value)) {
			unset($_SESSION[$namespace][$name]);
		} else {
			$_SESSION[$namespace][$name] = $value;
		}

		return $this;
	}
57508
public function setCoreAutoMenuindex($value)
    {
        $this->setFieldName('auto_menuindex');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
415537
public function wrap($value = null)
    {
        $exceptionFactory   = new ExceptionFactory($this->presenter);
        $wrappedObject      = new WrappedObject($value, $this->presenter);
        $caller             = new Caller($wrappedObject, $this->example, $this->dispatcher, $exceptionFactory, $this);
        $arrayAccess        = new SubjectWithArrayAccess($caller, $this->presenter, $this->dispatcher);
        $expectationFactory = new ExpectationFactory($this->example, $this->dispatcher, $this->matchers);

        return new Subject(
            $value, $this, $wrappedObject, $caller, $arrayAccess, $expectationFactory
        );
    }
457778
final public function whereStringContainsCaseInsensitive(string $memberExpression, $value)
    {
        return $this->where($memberExpression, ConditionOperator::STRING_CONTAINS_CASE_INSENSITIVE, $value);
    }
724600
public function setConstellations($value)
    {
        if ($value !== null && !in_array($value, [
                self::CONSTELLATION_ARIES,
                self::CONSTELLATION_TAURUS,
                self::CONSTELLATION_GEMINI,
                self::CONSTELLATION_CANCER,
                self::CONSTELLATION_LEO,
                self::CONSTELLATION_VIRGO,
                self::CONSTELLATION_LIBRA,
                self::CONSTELLATION_SCORPIUS,
                self::CONSTELLATION_SAGITTARIUS,
                self::CONSTELLATION_CAPRICONUS,
                self::CONSTELLATION_AQUARIUS,
                self::CONSTELLATION_PISCES,
            ])
        ) {
            throw new DomainError('Invalid constellations');
        }
        $this->parameters['constellations'] = $value;
        return $this;
    }