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 c9903d2 commit 54a13b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,13 @@
* @property int $ParentID ID of parent File/Folder
* @property int $OwnerID ID of Member who owns the file
*
* @method File Parent() Returns parent File
* @method Member Owner() Returns Member object of file owner.
* @method HasManyList|FileLink[] BackLinks() List of SiteTreeLink objects attached to this page
*
* @mixin Hierarchy
* @mixin Versioned
* @mixin RecursivePublishable
* @mixin InheritedPermissionsExtension
* @method HasManyList<FileLink> BackLinks()
* @method Member Owner()
* @method File Parent()
*/
class File extends DataObject implements AssetContainer, Thumbnail, CMSPreviewable, PermissionProvider, Resettable
{
Expand Down
4 changes: 2 additions & 2 deletions src/Shortcodes/FileLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
/**
* Represents a link between a dataobject parent and a file shortcode in a HTML content area
*
* @method DataObject Parent() Parent object
* @method File Linked() File being linked to
* @method File Linked()
* @method DataObject Parent()
*/
class FileLink extends DataObject
{
Expand Down
2 changes: 1 addition & 1 deletion src/Shortcodes/FileLinkTracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* only be enabled for the Stage record.
*
* @property DataObject|FileLinkTracking $owner
* @method ManyManyList|File[] FileTracking() List of files linked on this dataobject
* @method SilverStripe\ORM\ManyManyThroughList<File> FileTracking()
*/
class FileLinkTracking extends DataExtension
{
Expand Down

0 comments on commit 54a13b8

Please sign in to comment.