From 54a13b863b6dcf1db8b1d950e732fb60f679e66c Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 15 Dec 2023 11:57:30 +1300 Subject: [PATCH] MNT Update @methods on class docblocks --- src/File.php | 7 +++---- src/Shortcodes/FileLink.php | 4 ++-- src/Shortcodes/FileLinkTracking.php | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/File.php b/src/File.php index b6b14de9..c3550713 100644 --- a/src/File.php +++ b/src/File.php @@ -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 BackLinks() + * @method Member Owner() + * @method File Parent() */ class File extends DataObject implements AssetContainer, Thumbnail, CMSPreviewable, PermissionProvider, Resettable { diff --git a/src/Shortcodes/FileLink.php b/src/Shortcodes/FileLink.php index 3507ec6f..d70fbc06 100644 --- a/src/Shortcodes/FileLink.php +++ b/src/Shortcodes/FileLink.php @@ -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 { diff --git a/src/Shortcodes/FileLinkTracking.php b/src/Shortcodes/FileLinkTracking.php index aa0f7c64..15bae1d0 100644 --- a/src/Shortcodes/FileLinkTracking.php +++ b/src/Shortcodes/FileLinkTracking.php @@ -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 FileTracking() */ class FileLinkTracking extends DataExtension {