| 1 | <?php |
||
| 11 | class RemoveComponentCommand extends UpdateCommand |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ComponentDomain |
||
| 15 | */ |
||
| 16 | protected $componentDomain; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var ComponentInterface |
||
| 20 | */ |
||
| 21 | protected $component; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Construct. |
||
| 25 | * |
||
| 26 | * @param ComponentDomain $componentDomain |
||
| 27 | */ |
||
| 28 | public function __construct(ComponentDomain $componentDomain) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @see ActionInterface::resolve() |
||
| 35 | */ |
||
| 36 | public function resolve() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Define component to delete. |
||
| 49 | * |
||
| 50 | * @param ComponentInterface $component |
||
| 51 | * |
||
| 52 | * @return self |
||
| 53 | */ |
||
| 54 | public function setComponent(ComponentInterface $component) |
||
| 60 | } |
||
| 61 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.