src/Job/Status.php
public function getAttribute($name, $default = null)
    {
        if ($this->loaded) {
            return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
        }

        // Could be just hget, but Credis will return false?!
        $attributes = $this->client->hGetAll($this->getHashKey());
        return isset($attributes[$name]) ? $attributes[$name] : $default;
    }
public function getAttribute($name, $default = null)
    {
        if ($this->loaded) {
            return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
        }

        // Could be just hget, but Credis will return false?!
        $attributes = $this->client->hGetAll($this->getHashKey());
        return isset($attributes[$name]) ? $attributes[$name] : $default;
    }
public function getAttribute ( $ name , $ default = null ) { if ( $ this -> loaded ) { return isset ( $ this -> attributes [ $ name ] ) ? $ this -> attributes [ $ name ] : $ default ; } // Could be just hget, but Credis will return false?! $ attributes = $ this -> client -> hGetAll ( $ this -> getHashKey ( ) ) ; return isset ( $ attributes [ $ name ] ) ? $ attributes [ $ name ] : $ default ; }
Gets a single attribute value

@param string $name
@param mixed $default
@return mixed
Gets a single attribute value