captainhook-git /
captainhook
| 1 | <?php |
||
| 2 | |||
| 3 | namespace CaptainHook\App\Plugin; |
||
| 4 | |||
| 5 | use CaptainHook\App\Hook\Constrained; |
||
| 6 | use CaptainHook\App\Hook\Restriction; |
||
| 7 | |||
| 8 | class DummyConstrainedPlugin extends DummyPlugin implements Constrained |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Restriction|null |
||
| 12 | */ |
||
| 13 | public static ?Restriction $restriction; |
||
| 14 | |||
| 15 | public static function getRestriction(): Restriction |
||
| 16 | { |
||
| 17 | return self::$restriction; |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 18 | } |
||
| 19 | } |
||
| 20 |