Skip to content

Commit

Permalink
Merge pull request #1125 from creative-commoners/pulls/5.1/docblock
Browse files Browse the repository at this point in the history
MNT Update @methods on class docblocks
  • Loading branch information
GuySartorelli authored Dec 14, 2023
2 parents 057fa49 + 486bcad commit 8d24b75
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit 8d24b75

Please sign in to comment.