From 9ec0069158aace02c9f6d851acfd4d8d1ff1eaba Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 11 Jan 2024 15:45:59 +1300 Subject: [PATCH] ENH Add generic types --- src/Extensions/ArchiveRestoreAction.php | 3 +++ src/Extensions/BlockArchiveExtension.php | 2 ++ src/Extensions/FileArchiveExtension.php | 2 ++ src/Extensions/SiteTreeArchiveExtension.php | 2 ++ src/Extensions/UsedOnTableExtension.php | 5 ++++- 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Extensions/ArchiveRestoreAction.php b/src/Extensions/ArchiveRestoreAction.php index a68f8d2b..650894e6 100644 --- a/src/Extensions/ArchiveRestoreAction.php +++ b/src/Extensions/ArchiveRestoreAction.php @@ -12,10 +12,13 @@ use SilverStripe\ORM\ValidationResult; use SilverStripe\Versioned\RestoreAction; use SilverStripe\Versioned\Versioned; +use SilverStripe\Versioned\VersionedGridFieldItemRequest; use SilverStripe\VersionedAdmin\ArchiveAdmin; /** * Adds a restore action to the item edit form of ArchiveAdmin + * + * @extends DataExtension */ class ArchiveRestoreAction extends DataExtension { diff --git a/src/Extensions/BlockArchiveExtension.php b/src/Extensions/BlockArchiveExtension.php index 7c5429a6..d839d259 100644 --- a/src/Extensions/BlockArchiveExtension.php +++ b/src/Extensions/BlockArchiveExtension.php @@ -12,6 +12,8 @@ /** * Adds a archive view for Elemental blocks + * + * @extends DataExtension */ class BlockArchiveExtension extends DataExtension implements ArchiveViewProvider { diff --git a/src/Extensions/FileArchiveExtension.php b/src/Extensions/FileArchiveExtension.php index 8c212ec4..cc102c60 100644 --- a/src/Extensions/FileArchiveExtension.php +++ b/src/Extensions/FileArchiveExtension.php @@ -15,6 +15,8 @@ /** * Adds a archive view for Files + * + * @extends DataExtension */ class FileArchiveExtension extends DataExtension implements ArchiveViewProvider { diff --git a/src/Extensions/SiteTreeArchiveExtension.php b/src/Extensions/SiteTreeArchiveExtension.php index 1b34291c..3debea3a 100644 --- a/src/Extensions/SiteTreeArchiveExtension.php +++ b/src/Extensions/SiteTreeArchiveExtension.php @@ -12,6 +12,8 @@ /** * Adds a archive view for Pages + * + * @extends DataExtension */ class SiteTreeArchiveExtension extends DataExtension implements ArchiveViewProvider { diff --git a/src/Extensions/UsedOnTableExtension.php b/src/Extensions/UsedOnTableExtension.php index 4aec3cab..7aa55a80 100644 --- a/src/Extensions/UsedOnTableExtension.php +++ b/src/Extensions/UsedOnTableExtension.php @@ -2,12 +2,15 @@ namespace SilverStripe\VersionedAdmin\Extensions; +use SilverStripe\Admin\Forms\UsedOnTable; use SilverStripe\Core\Extension; use SilverStripe\Versioned\ChangeSetItem; +/** + * @extends Extension + */ class UsedOnTableExtension extends Extension { - /** * @var array $excludedClasses */