From 486bcad413a70d701f170b88cb77704e392013c1 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 14 Dec 2023 15:05:01 +1300 Subject: [PATCH] MNT Update @methods on class docblocks --- src/Extensions/ElementalPageExtension.php | 2 +- src/Models/BaseElement.php | 3 +-- src/Models/ElementalArea.php | 1 + src/TopPage/DataExtension.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Extensions/ElementalPageExtension.php b/src/Extensions/ElementalPageExtension.php index 246e5128..78f87780 100644 --- a/src/Extensions/ElementalPageExtension.php +++ b/src/Extensions/ElementalPageExtension.php @@ -10,8 +10,8 @@ use SilverStripe\View\SSViewer; /** - * @method ElementalArea ElementalArea() * @property int ElementalAreaID + * @method ElementalArea ElementalArea() */ class ElementalPageExtension extends ElementalAreasExtension { diff --git a/src/Models/BaseElement.php b/src/Models/BaseElement.php index b7579eee..d0ca9805 100644 --- a/src/Models/BaseElement.php +++ b/src/Models/BaseElement.php @@ -47,9 +47,8 @@ * @property string $Style * @property int $ParentID * - * @method ElementalArea Parent() - * * @mixin Versioned + * @method ElementalArea Parent() */ class BaseElement extends DataObject implements CMSPreviewable { diff --git a/src/Models/ElementalArea.php b/src/Models/ElementalArea.php index 36b96980..48626001 100644 --- a/src/Models/ElementalArea.php +++ b/src/Models/ElementalArea.php @@ -23,6 +23,7 @@ * @property string $OwnerClassName * * @mixin Versioned + * @method HasManyList Elements() */ class ElementalArea extends DataObject { diff --git a/src/TopPage/DataExtension.php b/src/TopPage/DataExtension.php index 1964b367..8f543770 100644 --- a/src/TopPage/DataExtension.php +++ b/src/TopPage/DataExtension.php @@ -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 {