Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Update @methods on class docblocks #217

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Extensions/ContentReviewDefaultSettings.php
Original file line number Diff line number Diff line change
@@ -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
{
3 changes: 3 additions & 0 deletions src/Extensions/ContentReviewOwner.php
Original file line number Diff line number Diff line change
@@ -6,6 +6,9 @@
use SilverStripe\Forms\FieldList;
use SilverStripe\ORM\DataExtension;

/**
* @method SilverStripe\ORM\ManyManyList<SiteTree> SiteTreeContentReview()
*/
class ContentReviewOwner extends DataExtension
{
/**
6 changes: 3 additions & 3 deletions src/Extensions/SiteTreeContentReview.php
Original file line number Diff line number Diff line change
@@ -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
{
4 changes: 4 additions & 0 deletions src/Models/ContentReviewLog.php
Original file line number Diff line number Diff line change
@@ -7,6 +7,10 @@
use SilverStripe\Security\Member;
use SilverStripe\Security\Security;

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