demo/Acme/Article/Article.php
protected function getAttribute($name)
    {
        if (isset($this->data[$name])) {
            return $this->data[$name];
        }

        return null;
    }
protected function getAttribute($name)
    {
        if (isset($this->data[$name])) {
            return $this->data[$name];
        }

        return null;
    }
protected function getAttribute ( $ name ) { if ( isset ( $ this -> data [ $ name ] ) ) { return $ this -> data [ $ name ] ; } return null ; }
Get an article's attribute.

@param string $name

@return mixed
Get an article s attribute .