Skip to content

Commit

Permalink
MNT Update @methods on class docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 14, 2023
1 parent d401365 commit d57cf05
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/Extensions/ContentReviewDefaultSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* review setting.
*
* @property int $ReviewPeriodDays
* @method SilverStripe\ORM\ManyManyList<Group> ContentReviewGroups()
* @method SilverStripe\ORM\ManyManyList<Member> ContentReviewUsers()
*/
class ContentReviewDefaultSettings extends DataExtension
{
Expand Down
3 changes: 3 additions & 0 deletions src/Extensions/ContentReviewOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use SilverStripe\Forms\FieldList;
use SilverStripe\ORM\DataExtension;

/**
* @method SilverStripe\ORM\ManyManyList<SiteTree> SiteTreeContentReview()
*/
class ContentReviewOwner extends DataExtension
{
/**
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/SiteTreeContentReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
* @property string $LastEditedByName
* @property string $OwnerNames
*
* @method DataList ReviewLogs()
* @method DataList ContentReviewGroups()
* @method DataList ContentReviewUsers()
* @method SilverStripe\ORM\ManyManyList<Group> ContentReviewGroups()
* @method SilverStripe\ORM\ManyManyList<Member> ContentReviewUsers()
* @method SilverStripe\ORM\HasManyList<ContentReviewLog> ReviewLogs()
*/
class SiteTreeContentReview extends DataExtension implements PermissionProvider
{
Expand Down
4 changes: 4 additions & 0 deletions src/Models/ContentReviewLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
use SilverStripe\Security\Member;
use SilverStripe\Security\Security;

/**
* @method Member Reviewer()
* @method SiteTree SiteTree()
*/
class ContentReviewLog extends DataObject
{
/**
Expand Down

0 comments on commit d57cf05

Please sign in to comment.