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 99d74f9 commit 33da9d0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/Model/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
/**
* Blog Holder
*
* @method HasManyList Tags() List of tags in this blog
* @method HasManyList Categories() List of categories in this blog
* @method ManyManyList Editors() List of editors
* @method ManyManyList Writers() List of writers
* @method ManyManyList Contributors() List of contributors
* @method HasManyList<BlogCategory> Categories()
* @method ManyManyList<Member> Contributors()
* @method ManyManyList<Member> Editors()
* @method HasManyList<BlogTag> Tags()
* @method ManyManyList<Member> Writers()
*/
class Blog extends Page implements PermissionProvider
{
Expand Down
3 changes: 2 additions & 1 deletion src/Model/BlogCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
* A blog category for generalising blog posts.
*
*
* @method Blog Blog()
*
* @property string $Title
* @property string $URLSegment
* @property int $BlogID
* @method Blog Blog()
* @method SilverStripe\ORM\ManyManyList<BlogPost> BlogPosts()
*/
class BlogCategory extends DataObject implements CategorisationObject
{
Expand Down
2 changes: 2 additions & 0 deletions src/Model/BlogMemberExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
/**
* This class is responsible for add Blog specific behaviour to Members.
*
* @method SilverStripe\ORM\ManyManyList<BlogPost> BlogPosts()
* @method Image BlogProfileImage()
*/
class BlogMemberExtension extends DataExtension
{
Expand Down
10 changes: 4 additions & 6 deletions src/Model/BlogPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@
/**
* An individual blog post.
*
* @method ManyManyList Categories()
* @method ManyManyList Tags()
* @method ManyManyList Authors()
* @method Blog Parent()
* @method Image FeaturedImage()
*
* @property string $PublishDate
* @property string $AuthorNames
* @property string $Summary
* @property int $ParentID
* @property int $FeaturedImageID
* @method ManyManyList<Member> Authors()
* @method ManyManyList<BlogCategory> Categories()
* @method Image FeaturedImage()
* @method ManyManyList<BlogTag> Tags()
*/
class BlogPost extends Page
{
Expand Down
5 changes: 2 additions & 3 deletions src/Model/BlogTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
/**
* A blog tag for keyword descriptions of a blog post.
*
*
* @method Blog Blog()
*
* @property string $Title
* @property string $URLSegment
* @property int $BlogID
* @method Blog Blog()
* @method SilverStripe\ORM\ManyManyList<BlogPost> BlogPosts()
*/
class BlogTag extends DataObject implements CategorisationObject
{
Expand Down

0 comments on commit 33da9d0

Please sign in to comment.