protected function _getAuthor()
    {
        if ($this->created_by instanceof User) {
            return $this->created_by;
        }

        return new User([
            'username' => __d('content', 'unknown'),
            'name' => __d('content', 'Unknown'),
            'web' => __d('content', '(no website)'),
            'email' => __d('content', 'Unknown'),
        ]);
    }
protected function _getAuthor()
    {
        if ($this->created_by instanceof User) {
            return $this->created_by;
        }

        return new User([
            'username' => __d('content', 'unknown'),
            'name' => __d('content', 'Unknown'),
            'web' => __d('content', '(no website)'),
            'email' => __d('content', 'Unknown'),
        ]);
    }
protected function _getAuthor ( ) { if ( $ this -> created_by instanceof User ) { return $ this -> created_by ; } return new User ( [ 'username' => __d ( 'content' , 'unknown' ) , 'name' => __d ( 'content' , 'Unknown' ) , 'web' => __d ( 'content' , '(no website)' ) , 'email' => __d ( 'content' , 'Unknown' ) , ] ) ; }
Gets content's author as an User entity.

@return \User\Model\Entity\User
Gets content s author as an User entity .