Kraken\Channel\Protocol\Protocol::setAll PHP Метод

setAll() публичный Метод

public setAll ( $args = [], $reassign = false )
    public function setAll($args = [], $reassign = false)
    {
        $this->type = isset($args[0]) && ($this->type === '' || $reassign) ? $args[0] : $this->type;
        $this->pid = isset($args[1]) && ($this->pid === '' || $reassign) ? $args[1] : $this->pid;
        $this->destination = isset($args[2]) && ($this->destination === '' || $reassign) ? $args[2] : $this->destination;
        $this->origin = isset($args[3]) && ($this->origin === '' || $reassign) ? $args[3] : $this->origin;
        $this->message = isset($args[4]) && ($this->message === '' || $reassign) ? $args[4] : $this->message;
        $this->exception = isset($args[5]) && ($this->exception === '' || $reassign) ? $args[5] : $this->exception;
        $this->timestamp = isset($args[6]) && ($this->timestamp == 0 || $reassign) ? $args[6] : $this->timestamp;
        return $this;
    }