@param int $estado

@return self
550861
public static function generarEstadoHttp($estado)
    {
        $ruta = new self();
        $ruta->tipo = 'estado_http';
        $ruta->estadoHttp = $estado;

        return $ruta;
    }
1194986
public function from($table = null)
    {
        if ($table !== null) {
            $this->table = $table;
            $table = $this->quote($table);
        }

        $this->append(' FROM ' . $table);
        return $this;
    }
924390
protected function addValue(int $offset) : self
    {
        $this->setValue($this->getValue() + $offset);
        return $this;
    }
58201
public function setFrom($from) {
        if (!is_array($from)) {
            $from = array($from, '');
        }
        $this->_params['from'] = $from;
        return $this;
    }
1292767
public function margin(int $left, ?int $right = null): self
    {
        $this->leftMargin = $left;
        $this->rightMargin = $right ?? $left;

        return $this;
    }
140289
public function padding(int $left, ?int $right = null): self
    {
        $this->leftPadding = $left;
        $this->rightPadding = $right ?? $left;

        return $this;
    }
974541
public function setSubject($subject): self
	{
		$this->message->setSubject($this->translator ? $this->translator->translate($subject) : (string) $subject);
		return $this;
	}
161009
public function setType($type): self
    {
        if ($type instanceof Type) {
            $this->setIndex($type->getIndex()->getName());
            $type = $type->getName();
        }
        $this->_metadata['_type'] = $type;

        return $this;
    }
795370
public function from($field, string $as): self
    {
        if (is_string($field) && strpos($field, '(') === false) {
            $field = $this->prepareField($field);
        }

        $this->query['from'] = sprintf('(%s) AS %s', $field, $this->agent->quoteField($as));

        return $this;
    }
180873
public function withIndex(int $index): self
    {
        $state = clone $this;
        $state->_index = $index;
        return $state;
    }
1268723
public function update(Expression $leftOperand, $operator, Expression $rightOperand)
    {
        if ($this->leftOperand === $leftOperand
                && $this->operator === $operator
                && $this->rightOperand === $rightOperand
        ) {
            return $this;
        }

        return new self($leftOperand, $operator, $rightOperand);
    }
23010
public function connect(): self
    {
        if ($this->pdoInstance !== null) {
            return $this;
        }

        // Build a database connection if we don't have one connected
        $this->setPdoInstance($this->getAdapter()->connect($this->getAdapterConfig()));

        return $this;
    }
403125
public function scope(...$scopes): self
    {
        $this->scopes = \array_merge($this->scopes, $scopes);

        return $this;
    }
12935
public function throws(\Throwable $e): self
    {
        $this->callMap = new CallMap(['function' => throws($e)]);
        return $this;
    }
1163173
protected function clearOption(int $option): self
    {
        $this->setOptions($this->getOptions() & ~$option);

        return $this;
    }
976578
public function withStatus(string $status): self
    {
        $this->status = JobEventStatusEnum::ensureValid($status);
        return $this;
    }
473113
public function set(string $str): self
    {
        $this->str = $this->inputConv($str);

        return $this;
    }