@param string $name
@param mixed  $value

@return \marvin255\serviform\interfaces\Field
2282
public function addToAttribute($name, $value)
    {
        $attr = $this->getAttribute($name);
        $this->setAttribute($name, $attr . $value);

        return $this;
    }
254929
public function withAttribute(string $name, $value = null)
    {
        $this->attributes[$name] = $value;

        return $this;
    }
1322264
private function filter(string $name, $value)
    {
        if (! isset($this->filters[$name])) {
            return $value;
        }

        return array_reduce(
            $this->filters[$name],
            function ($value, FilterInterface $filter) {
                return $filter->filter($value);
            },
            $value
        );
    }
110576
public function set($name, $value)
	{
		if (is_string($value) && class_exists($value)) {
			return $this->container->bind($name, $value);
		}

		return $this->container->set($name, $value);
	}
821789
public function option($name, $value) {
		$this->validateName($name);
		return $this->merge([$name => $value]);
	}
1295803
public function getFieldValue($name)
    {
        $value = null;
        $field = $this->getField($name);
        if (null !== $this->getField($name)) {
            $value = (array_key_exists('value', $field) && null !== $field['value']) ? $field['value'] : null;
        }
        return $value;
    }
814424
private function createAttributeValue($name, $value)
    {
        $factory = "create{$name}";

        if ($value instanceof JsonSerializable) {
            $value = $value->jsonSerialize();
        }

        $value = $this->{$factory}($value);

        if (!($value instanceof JsonSerializable || is_array($value))) {
            throw new DomainException('Invalid value factory');
        }

        return $value;
    }
1241136
public function text($name = null, $value = null) 
	{
		Argument::i()
			->test(1, 'string', 'null')
			->test(2, 'scalar', 'null');
			
		$field = Text::i();
		
		if(!is_null($name)) {
			$field->setName($name);
		}
		
		if(!is_null($value)) {
			$field->setValue($value);
		}
		
		return $field;
	}
743209
public function addFieldPair( $name, $value )
	{
		$field	= new Net_Mail_Header_Field( $name, $value );
		$this->addField( $field );
	}
1219398
protected function setHeader($name, $value)
    {
        $name  = $this->prepareHeaderName($name);
        $value = $this->prepareHeaderValue($value);

        $normalized = strtolower($name);
        if (! isset($this->headerNames[$normalized])) {
            $this->headerNames[$normalized] = $name;
        }

        $header = $this->headerNames[$normalized];

        $this->rawHeaders[$header] = $value;

        return $this;
    }
1265913
public function property($name, $value)
    {
        $this->_properties[$name] = new PropertyInjection($name, $value);
        return $this;
    }
918161
public function extend($name, $value)
    {
        if (is_callable($value)) {
            $this->extensions[$name] = $value;
        } else {
            $this->extensions[$name] = function ($ontraport) use ($value) {
                return new $value($ontraport);
            };
        }

        return $this;
    }
210954
public function set($name, $value) {
		\Asgard\Common\ArrayUtils::set($this->parameters, $name, $value);
		return $this;
	}
637020
public function setAttr(string $name, string $value)
    {
        $this->attr[$name] = $value;

        return $this;
    }
828152
public function filter($name, $value)
    {
        $this->filterCallback(function ($model) use ($name, $value) {
            return ($model->get($name) === $value);
        });
        return $this;
    }
1271178
public function addHeader($name, $value)
    {
        $name = strtolower($name);
        $this->headers[$name] = $value;
        return $this;
    }
365585
public function setHeader($name, $value)
    {
        $context = $this->_context;

        $context->headers[$name] = $value;

        return $this;
    }