From 2051eb9646fed28bae3c5b61edc04058ba854c53 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 6 Dec 2023 11:07:25 +1300 Subject: [PATCH] DOC Update PHPDoc for link models --- src/Models/FileLink.php | 6 ++++++ src/Models/Link.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Models/FileLink.php b/src/Models/FileLink.php index 15c7779e..f604c477 100644 --- a/src/Models/FileLink.php +++ b/src/Models/FileLink.php @@ -5,6 +5,12 @@ use SilverStripe\Assets\File; use SilverStripe\Forms\FieldList; +/** + * A link to a File in the CMS + * + * @property int $FileID + * @method File File() + */ class FileLink extends Link { private static string $table_name = 'LinkField_FileLink'; diff --git a/src/Models/Link.php b/src/Models/Link.php index 78e9cb55..0ccefd9e 100644 --- a/src/Models/Link.php +++ b/src/Models/Link.php @@ -15,7 +15,7 @@ use SilverStripe\ORM\FieldType\DBHTMLText; /** - * A Link Data Object. This class should be a subclass, and you should never directly interact with a plain Link + * A Link Data Object. This class should be treated as abstract. You should never directly interact with a plain Link * instance * * @property string $Title