1 | <?php |
||
9 | class PackageService extends AbstractService { |
||
10 | |||
11 | /** @var PackageSchema */ |
||
12 | private $package = null; |
||
13 | private $keeko = null; |
||
14 | private $module = null; |
||
15 | private $actions = null; |
||
|
|||
16 | private $app = null; |
||
17 | private $namespace = null; |
||
18 | |||
19 | /** |
||
20 | * |
||
21 | * @throws FileException |
||
22 | * @return PackageSchema |
||
23 | */ |
||
24 | public function getPackage() { |
||
36 | 20 | ||
37 | /** |
||
38 | * Returns the root namespace for this package |
||
39 | * |
||
40 | * @return string the namespace |
||
41 | */ |
||
42 | public function getNamespace() { |
||
58 | 17 | ||
59 | 17 | /** |
|
60 | 17 | * Returns the keeko node from the composer.json extra |
|
61 | 17 | * |
|
62 | 17 | * @return KeekoSchema |
|
63 | */ |
||
64 | 17 | public function getKeeko() { |
|
72 | |||
73 | /** |
||
74 | * Returns the keeko module schema |
||
75 | * |
||
76 | * @return ModuleSchema |
||
77 | */ |
||
78 | public function getModule() { |
||
86 | |||
87 | 8 | /** |
|
88 | 8 | * Returns the keeko app schema |
|
89 | 8 | * |
|
90 | 5 | * @return AppSchema |
|
91 | */ |
||
92 | public function getApp() { |
||
100 | 5 | ||
101 | 5 | /** |
|
102 | 5 | * Returns an action |
|
103 | * |
||
104 | * @param string $name |
||
105 | 5 | * @return ActionSchema |
|
106 | 5 | */ |
|
107 | public function getAction($name) { |
||
115 | |||
116 | public function getActionType($actionName, $modelName) { |
||
128 | |||
129 | // public function updateAction($name, $data) { |
||
130 | 16 | // $this->actions[$name] = $data; |
|
131 | 16 | // $this->package['extra']['keeko']['module']['actions'] = $this->actions; |
|
132 | // } |
||
133 | |||
134 | // private function getSlug($package = null) { |
||
135 | // if ($package === null) { |
||
136 | // $package = $this->getPackage(); |
||
137 | // } |
||
138 | // return str_replace('/', '.', $package['name']); |
||
139 | // } |
||
140 | |||
141 | public function savePackage(PackageSchema $package = null) { |
||
150 | } |
||
151 |
This check marks private properties in classes that are never used. Those properties can be removed.