From a787ea4ce6d8d1268e142cb8eab000e5617910db Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 14 Dec 2023 15:01:01 +1300 Subject: [PATCH] MNT Update @methods on class docblocks --- src/Extensions/CWPSiteConfigExtension.php | 10 ++++++++++ src/Extensions/CarouselPageExtension.php | 3 +++ src/Model/CarouselItem.php | 6 ++++++ 3 files changed, 19 insertions(+) diff --git a/src/Extensions/CWPSiteConfigExtension.php b/src/Extensions/CWPSiteConfigExtension.php index 93950e5..dd186c7 100644 --- a/src/Extensions/CWPSiteConfigExtension.php +++ b/src/Extensions/CWPSiteConfigExtension.php @@ -17,6 +17,16 @@ /** * Class CWPCleanupSiteConfigExtension + * @method File AppleTouchIcon114() + * @method File AppleTouchIcon144() + * @method File AppleTouchIcon57() + * @method File AppleTouchIcon72() + * @method File FavIcon() + * @method Image FooterLogo() + * @method Image FooterLogoRetina() + * @method Image FooterLogoSecondary() + * @method Image Logo() + * @method Image LogoRetina() */ class CWPSiteConfigExtension extends DataExtension { diff --git a/src/Extensions/CarouselPageExtension.php b/src/Extensions/CarouselPageExtension.php index a2bd90d..e264233 100644 --- a/src/Extensions/CarouselPageExtension.php +++ b/src/Extensions/CarouselPageExtension.php @@ -17,6 +17,9 @@ use SilverStripe\Forms\GridField\GridFieldVersionedState; use SilverStripe\Forms\LiteralField; +/** + * @method SilverStripe\ORM\HasManyList CarouselItems() + */ class CarouselPageExtension extends DataExtension { private static $db = [ diff --git a/src/Model/CarouselItem.php b/src/Model/CarouselItem.php index 6bda654..6d33374 100644 --- a/src/Model/CarouselItem.php +++ b/src/Model/CarouselItem.php @@ -18,6 +18,12 @@ use SilverStripe\ORM\DataObject; use SilverStripe\Forms\FileHandleField; +/** + * @method Image Image() + * @method BaseHomePage Parent() + * @method SiteTree PrimaryCallToAction() + * @method SiteTree SecondaryCallToAction() + */ class CarouselItem extends DataObject { private static $table_name = 'CarouselItem';