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 #581

Merged
Merged
Show file tree
Hide file tree
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
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