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

DOC Update PHPDoc for link models #136

Merged
merged 1 commit into from
Dec 5, 2023
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
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 @@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating this language while I'm here to make it a little clearer. "This class should be a subclass" doesn't really make sense.

* instance
*
* @property string $Title
Expand Down