Skip to content

Commit

Permalink
DOC Update PHPDoc for link models (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Dec 5, 2023
1 parent 3c8edfd commit 22fcdcc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Models/FileLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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
Expand Down

0 comments on commit 22fcdcc

Please sign in to comment.