src/Job/Status.php
public function setAttributes(array $attributes)
    {
        $this->attributes = array_merge($this->attributes, $attributes);

        $set = array();
        foreach ($attributes as $name => $value) {
            if ($name == 'status') {
                $this->update($value);
                continue;
            }
            $set[$name] = $value;
        }

        return call_user_func(array($this->client, 'hmset'), $this->getHashKey(), $set);
    }
public function setAttributes(array $attributes)
    {
        $this->attributes = array_merge($this->attributes, $attributes);

        $set = array();
        foreach ($attributes as $name => $value) {
            if ($name == 'status') {
                $this->update($value);
                continue;
            }
            $set[$name] = $value;
        }

        return call_user_func(array($this->client, 'hmset'), $this->getHashKey(), $set);
    }
public function setAttributes ( array $ attributes ) { $ this -> attributes = array_merge ( $ this -> attributes , $ attributes ) ; $ set = array ( ) ; foreach ( $ attributes as $ name => $ value ) { if ( $ name == 'status' ) { $ this -> update ( $ value ) ; continue ; } $ set [ $ name ] = $ value ; } return call_user_func ( array ( $ this -> client , 'hmset' ) , $ this -> getHashKey ( ) , $ set ) ; }
Sets all the given attributes

@param array<string,mixed> $attributes
@return mixed
Sets all the given attributes