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

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
2 changes: 1 addition & 1 deletion src/Extensions/ElementalPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use SilverStripe\View\SSViewer;

/**
* @method ElementalArea ElementalArea()
* @property int ElementalAreaID
* @method ElementalArea ElementalArea()
*/
class ElementalPageExtension extends ElementalAreasExtension
{
Expand Down
3 changes: 1 addition & 2 deletions src/Models/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@
* @property string $Style
* @property int $ParentID
*
* @method ElementalArea Parent()
*
* @mixin Versioned
* @method ElementalArea Parent()
*/
class BaseElement extends DataObject implements CMSPreviewable
{
Expand Down
1 change: 1 addition & 0 deletions src/Models/ElementalArea.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* @property string $OwnerClassName
*
* @mixin Versioned
* @method HasManyList<BaseElement> Elements()
*/
class ElementalArea extends DataObject
{
Expand Down
2 changes: 1 addition & 1 deletion src/TopPage/DataExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
* with deeply nested block structures. Apply to @see BaseElement and @see ElementalArea.
*
* @property int $TopPageID
* @method SiteTree TopPage()
* @property BaseElement|ElementalArea|$this $owner
* @package DNADesign\Elemental\TopPage
* @method SiteTree TopPage()
*/
class DataExtension extends BaseDataExtension
{
Expand Down