@param string|int|object $value
@param string            $name
@param string|array      $parameters

@return mixed
8318
protected function _validate($value, $name, $parameters)
    {
        if (is_object($value)) {
            return $value;
        }

        $method = "_validate_$name";
        if (method_exists($this, $method)) {
            return $parameters === null ? $this->$method($value) : $this->$method($value, $parameters);
        }

        if (function_exists($name)) {
            return $parameters === null ? $name($value) : $name($value, $parameters);
        }

        throw new NotSupportedException(['unsupported `:validate` validate method', 'validate' => $name]);
    }
1041175
final public static function methodCall(Expression $value, Expression $name, array $arguments = [])
    {
        return new MethodCallExpression(
                $value,
                $name,
                $arguments);
    }
1138433
protected function hasParameter(array $params, $name, $value = null)
    {
        $found = in_array($name, $params);
        if (is_null($value) || !$found) {
            return $found;
        }
        $paramValueIndex = array_search($name, $params) + 1;
        return isset($params[$paramValueIndex]) && ($params[$paramValueIndex] == $value);
    }
952522
public function addParam(string $name, $value): self
    {
        if (!is_array($value) && !is_scalar($value) && null !== $value) {
            if (is_object($value) && method_exists($value, '__toString')) {
                $value = (string) $value;
            } else {
                throw new \InvalidArgumentException(
                        'Argument 2 passed to ' . __METHOD__ . '() must be'
                        . ' a string, array, object with __toString() method'
                        . ' or any other scalar value.'
                );
            }
        }

        $this->parameters[$name] = $value;
        return $this;
    }
446244
public function create($name, $value)
    {
        if (!empty($this->callbacks[$name])) {
            return call_user_func($this->callbacks[$name], $name, $value);
        }

        return $this->createBasic($name, $value);
    }
270303
public function param($name, $value)
	{
		if(is_integer($name))
		{
			if(array_key_exists($name, $this->pathParamNames))
			{
				$this->path[$this->pathParamNames[$name]] = $value;
				
				return $this;
			}
			
			throw new \OutOfBoundsException(sprintf('No path param at position %u', $name));
		}
		
		if(in_array($name, $this->pathParamNames, true))
		{
			$this->path[(string)$name] = $value;
			
			return $this;
		}
		
		$this->query[(string)$name] = $value;
		
		return $this;
	}
1323821
public static function request(String $name = NULL, $value = NULL)
    {
        return self::_method($name, $value, $_REQUEST, __FUNCTION__);
    }
985135
public function setParam($name, $value)
    {
        switch ($name) {
            case 'processor':
                $this->setProcessor($value);
                break;
            case 'message':
                $this->setMessage($value);
                break;
            case 'result':
                $this->setResult($value);
                break;
            default:
                parent::setParam($name, $value);
                break;
        }
        return $this;
    }
701417
public function filter(string $name, $value, array $arguments = [])
    {
        return $this->filters ? $this->filters->filter($name, $value, $arguments) : $value;
    }
557893
public function setParameterGet($name, $value = null)
    {
        if (is_array($name)) {
            foreach ($name as $k => $v) {
                $this->_setParameter('GET', $k, $v);
            }
        } else {
            $this->_setParameter('GET', $name, $value);
        }

        return $this;
    }
820613
protected static function parseFieldValue($name, $value) {
		$field	= static::$validator->getField($name);
		if( $field ) {
			$field->getType()->parseValue($field, $value);
		}
		return parent::parseFieldValue($name, $value);
	}
744868
public function input(string $name, $value = null)
    {
        if ($value !== null) {
            !$this->all && $this->inputs();

            Arrays::set($this->input, $name, $value);
            $this->cache = [];

            return $value;
        }

        if (isset($this->input[$name])) {
            return $this->input[$name];
        }

        if (\array_key_exists($name, $this->cache)) {
            return $this->cache[$name];
        }

        if ($this->all) {
            $found = Arrays::get($this->input, $name);
        } else {
            if ($this->serverRequest->getMethod() !== 'GET') {
                $found = $this->request($name);
            }

            $found = $found ?? $this->query($name);
        }

        return $this->cache[$name] = $found;
    }
355307
public static function get( $name = '', $value = '' ) {

		if ( ! empty( $value ) ) {
			$_GET[ $name ] = $value;
		}

		if ( empty( $name ) ) {
			return $_GET;
		} else {
			return ( isset( $_GET[ $name ] ) ) ? $_GET[ $name ] : NULL;
		}

	}
1271243
public function setParam($name, $value): void
    {
        if (\is_array($this->params)) {
            // Arrays or objects implementing array access
            $this->params[$name] = $value;
        } else {
            // Objects
            $this->params->{$name} = $value;
        }
    }
302181
public function setParameter($name, $value)
    {
        $config                      = $this->get('config');
        $config['parameters'][$name] = $value;

        $this->set('config', $config);
    }
514814
public function set(string $name, string $value): void
    {
        $this->parameters[$name] = $value;
    }
252284
private function implicitReadStringValue(array $parameters, string $name): ?string
    {
        return array_key_exists($name, $parameters) === true && is_string($value = $parameters[$name]) === true ?
            $value : null;
    }