1 | <?php |
||
24 | abstract class ComponentProjectAwareCommand extends Command { |
||
25 | /** |
||
26 | * Component project file. |
||
27 | * |
||
28 | * Lazily loaded -- be sure to call getProject() in order to ensure the |
||
29 | * value is defined. |
||
30 | * |
||
31 | * @var ComponentProjectFile |
||
32 | */ |
||
33 | protected $componentProjectFile; |
||
34 | |||
35 | /** |
||
36 | * Platform support library. |
||
37 | * |
||
38 | * @var Platform |
||
39 | */ |
||
40 | protected $platform; |
||
41 | |||
42 | /** |
||
43 | * Initialiser. |
||
44 | * |
||
45 | * @param Platform $platform |
||
46 | */ |
||
47 | public function __construct(Platform $platform) { |
||
48 | $this->platform = $platform; |
||
49 | |||
50 | parent::__construct(); |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Get component project file. |
||
55 | * |
||
56 | * @return ComponentProjectFile |
||
57 | */ |
||
58 | protected function getComponentProjectFile() { |
||
66 | } |
||
67 |