1 | <?php |
||
21 | class ValidateProjectStep implements Step { |
||
22 | /** |
||
23 | * Project to validate. |
||
24 | * |
||
25 | * @var \ComponentManager\Project\Project |
||
26 | */ |
||
27 | protected $project; |
||
28 | |||
29 | /** |
||
30 | * Initialiser. |
||
31 | * |
||
32 | * @param \ComponentManager\Project\Project $project |
||
33 | */ |
||
34 | public function __construct(Project $project) { |
||
37 | |||
38 | /** |
||
39 | * @override \ComponentManager\Step\Step |
||
40 | */ |
||
41 | public function execute($task, LoggerInterface $logger) { |
||
82 | |||
83 | /** |
||
84 | * Does the supplied component have a valid name? |
||
85 | * |
||
86 | * @param \ComponentManager\ComponentSpecification $componentSpecification |
||
87 | * |
||
88 | * @return boolean |
||
89 | */ |
||
90 | protected function isValidComponentName(ComponentSpecification $componentSpecification) { |
||
94 | |||
95 | /** |
||
96 | * Is the supplied component's package repository known to us? |
||
97 | * |
||
98 | * @param \ComponentManager\ComponentSpecification $componentSpecification |
||
99 | * @param \ComponentManager\PackageRepository\PackageRepository[] $packageRepositories |
||
100 | * |
||
101 | * @return boolean |
||
102 | */ |
||
103 | protected function isValidPackageRepository(ComponentSpecification $componentSpecification, $packageRepositories) { |
||
107 | |||
108 | /** |
||
109 | * Is the supplied component's specification complete? |
||
110 | * |
||
111 | * @param \ComponentManager\ComponentSpecification $componentSpecification |
||
112 | * |
||
113 | * @return boolean |
||
114 | */ |
||
115 | protected function isComponentSpecificationComplete(ComponentSpecification $componentSpecification) { |
||
119 | } |
||
120 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.