| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class PluginInstallDefinition implements TaskDefinitionInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $plugin; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var bool |
||
| 19 | */ |
||
| 20 | private $activate; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * PluginInstallDefinition constructor. |
||
| 24 | * @param string $plugin |
||
| 25 | * @param bool $activate |
||
| 26 | */ |
||
| 27 | public function __construct(string $plugin, bool $activate = false) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param bool $activate |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | public function activate(bool $activate = true): self |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return ParameterCollectionInterface |
||
| 45 | */ |
||
| 46 | public function define(): ParameterCollectionInterface |
||
| 49 | } |
||
| 50 | } |