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

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
10 changes: 10 additions & 0 deletions src/Extensions/CWPSiteConfigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
3 changes: 3 additions & 0 deletions src/Extensions/CarouselPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
use SilverStripe\Forms\GridField\GridFieldVersionedState;
use SilverStripe\Forms\LiteralField;

/**
* @method SilverStripe\ORM\HasManyList<CarouselItem> CarouselItems()
*/
class CarouselPageExtension extends DataExtension
{
private static $db = [
Expand Down
6 changes: 6 additions & 0 deletions src/Model/CarouselItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down