Skip to content

Commit

Permalink
Add getters for the author's id and full name (#429)
Browse files Browse the repository at this point in the history
* Add getters for the author's id and full name

* fix code formatting

* fix code formatting
  • Loading branch information
DavidFeller authored and wachterjohannes committed Jan 22, 2020
1 parent 631e10b commit f99d10b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Content/ArticleResourceItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,20 @@ public function getId()
{
return $this->getUuid();
}

/**
* {@inheritdoc}
*/
public function getAuthorId()
{
return $this->article->getAuthorId();
}

/**
* {@inheritdoc}
*/
public function getAuthorFullName()
{
return $this->article->getAuthorFullName();
}
}

0 comments on commit f99d10b

Please sign in to comment.