Add title.

@param string $value
@param string $type

@return Title

@since 1.0
424570
public function addTitle($value, $type = 'text')
    {
        /** @var Title $element */
        $element = $this->addChild('atom:title', 'title');
        $element->setContent($value, $type);

        return $element;
    }
683325
public function setParameter($parameter, $value, $type = null)
    {
        $this->parameters[$parameter] = $value;

        if ($type !== null) {
            $this->parameterTypes[$parameter] = $type;
        }

        if (is_int($parameter)) {
            $this->mode = self::MODE_POSITIONAL;
            $this->parameterCounters['positional']++;
        } else {
            $this->mode = self::MODE_NAMED;
        }

        return $this;
    }
856146
public function setValue($value = null, $type = self::T_TEXT)
    {
        unset($this->rawValue);
        unset($this->value);
        $this->_initValue($value, $type);
    }
208640
public function withChangedTarget(string $type, string $value): self
    {
        $new = clone $this;
        $new->target = MessageTarget::with($type, $value);

        return $new;
    }
364415
public function add($type, $value)
    {
        if (!isset($this->_data[$type])) {
            $this->_data[$type] = [];
        }
        $this->_data[$type][] = $value;
        return $this;
    }
1163637
public function bind($parameter, $value, $type = null)
    {
        $this->statement->bindParam($parameter, $value, $this->driver->getPdoType($type, $value));
        return $this;
    }
1273814
private function addRelationQuery($type, $value)
    {
        $this->prepareRelationFilter($type);
        $this->filters[$type][] = $value;
        return $this;
    }
798893
public function addStyleDeclaration($content, $type = 'text/css')
	{
		if (!isset($this->_style[strtolower($type)]))
		{
			$this->_style[strtolower($type)] = $content;
		}
		else
		{
			$this->_style[strtolower($type)] .= chr(13) . $content;
		}

		return $this;
	}
52652
public function create(CType $type, $value)
    {
        $type_name = $type->getName();

        if($type_name !== 'seo')
        {
            throw new SeoException('Seo не обрабатывает тип '.$type_name);
        }

        $item = new CItem($type, $value, false);

        return $item;
    }
38247
public function addType($type)
    {
        if (is_string($type)) {
            $type = array($type);
        }

        foreach($type as $typ) {
            if (defined('self::' . strtoupper($typ)) && !in_array($typ, $this->_type)) {
                $this->_type[] = $typ;
            }

            if (($typ == self::ALL)) {
                $this->_type = array_keys($this->_cardLength);
            }
        }

        return $this;
    }
360195
public static function timePicker($field, $title, $value = '', $type = TimePicker::TYPE_TIME)
    {
        return (new TimePicker($field, $title, $value))->type($type);
    }
98001
protected function setValue($value, string $type)
    {
        $this->value = $type !== self::TYPE_CALL
            ? $this->validateValue($value)
            : array_map(function ($value) {
                return $this->validateValue($value);
            }, $value);
    }
897871
public function add($value)
    {
        if (!is_string($value)) {
            throw new UnexpectedTypeException($value, 'string', 'value');
        }
        if (empty($value)) {
            return;
        }

        if ($this->allowTokenize) {
            $this->values = array_merge($this->values, explode($this->delimiter, $value));
        } else {
            $this->values[] = $value;
        }
    }
1332272
public function addDefinition($type, $value, $field)
	{
		$definition = new \stdClass();
		$definition->type = $type;
		$definition->value = $value;
		$definition->field = $field;
		
		$this->_filter[] = $definition;
	}
224532
public function generateValueSizeStatement($type, $value)
    {
        $metadata = $this->getComputeSizeMetadata($type);
        $method   = $metadata['method'];
        $size     = $metadata['size'];

        if ($size !== null) {
            return $size;
        }

        return sprintf('$calculator->%s(%s)', $method, $value);
    }
25467
public function nextIf($type, $value = null)
    {
        if ($this->test($type, $value)) {
            return $this->next();
        }
    }
662575
public function bindValue($param, $value, $type = \PDO::PARAM_STR)
    {
        $this->statement->bindValue($param, $value, $type);
        return $this;
    }