@@ -15,50 +15,50 @@ discard block |
||
15 | 15 | * @author Lukas Homza <[email protected]> |
16 | 16 | */ |
17 | 17 | class Config { |
18 | - /** |
|
19 | - * @Type("string") |
|
20 | - */ |
|
21 | - private $name; |
|
22 | - |
|
23 | - /** |
|
24 | - * @Type("string") |
|
25 | - */ |
|
26 | - private $homepage; |
|
27 | - |
|
28 | - /** |
|
29 | - * @Type("App\Satis\Collections\RepositoryCollection<App\Satis\Model\Repository>") |
|
30 | - */ |
|
31 | - private $repositories; |
|
32 | - |
|
33 | - /** |
|
34 | - * @Type("App\Satis\Collections\PackageCollection<App\Satis\Model\Package>") |
|
35 | - * @SerializedName("require") |
|
36 | - */ |
|
37 | - private $packages; |
|
38 | - |
|
39 | - /** |
|
40 | - * @Type("boolean") |
|
41 | - * @SerializedName("require-all") |
|
42 | - */ |
|
43 | - private $requireAll; |
|
44 | - |
|
45 | - /** |
|
46 | - * @Type("boolean") |
|
47 | - * @SerializedName("require-dependencies") |
|
48 | - */ |
|
49 | - private $requireDependencies; |
|
50 | - |
|
51 | - /** |
|
52 | - * @Type("boolean") |
|
53 | - * @SerializedName("require-dev-dependencies") |
|
54 | - */ |
|
55 | - private $requireDevDependencies; |
|
56 | - |
|
57 | - /** |
|
58 | - * @var Archive |
|
59 | - * @Type("App\Satis\Model\Archive") |
|
60 | - */ |
|
61 | - private $archive; |
|
18 | + /** |
|
19 | + * @Type("string") |
|
20 | + */ |
|
21 | + private $name; |
|
22 | + |
|
23 | + /** |
|
24 | + * @Type("string") |
|
25 | + */ |
|
26 | + private $homepage; |
|
27 | + |
|
28 | + /** |
|
29 | + * @Type("App\Satis\Collections\RepositoryCollection<App\Satis\Model\Repository>") |
|
30 | + */ |
|
31 | + private $repositories; |
|
32 | + |
|
33 | + /** |
|
34 | + * @Type("App\Satis\Collections\PackageCollection<App\Satis\Model\Package>") |
|
35 | + * @SerializedName("require") |
|
36 | + */ |
|
37 | + private $packages; |
|
38 | + |
|
39 | + /** |
|
40 | + * @Type("boolean") |
|
41 | + * @SerializedName("require-all") |
|
42 | + */ |
|
43 | + private $requireAll; |
|
44 | + |
|
45 | + /** |
|
46 | + * @Type("boolean") |
|
47 | + * @SerializedName("require-dependencies") |
|
48 | + */ |
|
49 | + private $requireDependencies; |
|
50 | + |
|
51 | + /** |
|
52 | + * @Type("boolean") |
|
53 | + * @SerializedName("require-dev-dependencies") |
|
54 | + */ |
|
55 | + private $requireDevDependencies; |
|
56 | + |
|
57 | + /** |
|
58 | + * @var Archive |
|
59 | + * @Type("App\Satis\Model\Archive") |
|
60 | + */ |
|
61 | + private $archive; |
|
62 | 62 | |
63 | 63 | /** |
64 | 64 | * @Type("string") |
@@ -66,133 +66,133 @@ discard block |
||
66 | 66 | */ |
67 | 67 | private $twigTemplate; |
68 | 68 | |
69 | - /** |
|
70 | - * Constructor |
|
71 | - */ |
|
72 | - public function __construct() { |
|
73 | - $this->repositories = []; |
|
74 | - $this->packages = []; |
|
75 | - $this->requireAll = false; |
|
76 | - $this->requireDependencies = true; |
|
77 | - $this->requireDevDependencies = false; |
|
78 | - } |
|
79 | - |
|
80 | - /** |
|
81 | - * Get name |
|
82 | - * |
|
83 | - * @return string $name |
|
84 | - */ |
|
85 | - public function getName() { |
|
86 | - return $this->name; |
|
87 | - } |
|
88 | - |
|
89 | - /** |
|
90 | - * Get homepage |
|
91 | - * |
|
92 | - * @return string $homepage |
|
93 | - */ |
|
94 | - public function getHomepage() { |
|
95 | - return $this->homepage; |
|
96 | - } |
|
97 | - |
|
98 | - /** |
|
99 | - * @param string $homepage |
|
100 | - * @return $this |
|
101 | - */ |
|
102 | - public function setHomepage($homepage) { |
|
103 | - $this->homepage = $homepage; |
|
104 | - |
|
105 | - return $this; |
|
106 | - } |
|
107 | - |
|
108 | - /** |
|
109 | - * Get repositories |
|
110 | - * |
|
111 | - * @return RepositoryCollection<Repository> |
|
112 | - */ |
|
113 | - public function getRepositories() { |
|
114 | - return $this->repositories; |
|
115 | - } |
|
116 | - |
|
117 | - /** |
|
118 | - * Set repositories |
|
119 | - * |
|
120 | - * @param RepositoryCollection $repositories |
|
121 | - * |
|
122 | - * @return static |
|
123 | - */ |
|
124 | - public function setRepositories(RepositoryCollection $repositories) { |
|
125 | - $this->repositories = $repositories; |
|
126 | - |
|
127 | - return $this; |
|
128 | - } |
|
129 | - |
|
130 | - /** |
|
131 | - * @param Archive $archive |
|
132 | - */ |
|
133 | - public function setArchive(Archive $archive = null) { |
|
134 | - $this->archive = $archive; |
|
135 | - } |
|
136 | - |
|
137 | - /** |
|
138 | - * @return Archive |
|
139 | - */ |
|
140 | - public function getArchive() { |
|
141 | - return $this->archive; |
|
142 | - } |
|
143 | - |
|
144 | - /** |
|
145 | - * Get packages |
|
146 | - * |
|
147 | - * @return PackageCollection<Package> |
|
148 | - */ |
|
149 | - public function getPackages() { |
|
150 | - return $this->packages; |
|
151 | - } |
|
152 | - |
|
153 | - /** |
|
154 | - * @param PackageCollection $packages |
|
155 | - * @return $this |
|
156 | - */ |
|
157 | - public function setPackages(PackageCollection $packages) { |
|
158 | - $this->packages = $packages; |
|
159 | - |
|
160 | - return $this; |
|
161 | - } |
|
162 | - |
|
163 | - /** |
|
164 | - * @return boolean |
|
165 | - */ |
|
166 | - public function getRequireDevDependencies() { |
|
167 | - return $this->requireDevDependencies; |
|
168 | - } |
|
169 | - |
|
170 | - /** |
|
171 | - * @param boolean $requireDevDependencies |
|
172 | - * @return Config |
|
173 | - */ |
|
174 | - public function setRequireDevDependencies($requireDevDependencies) { |
|
175 | - $this->requireDevDependencies = $requireDevDependencies; |
|
176 | - |
|
177 | - return $this; |
|
178 | - } |
|
179 | - |
|
180 | - /** |
|
181 | - * @return boolean |
|
182 | - */ |
|
183 | - public function getRequireAll() { |
|
184 | - return $this->requireAll; |
|
185 | - } |
|
186 | - |
|
187 | - /** |
|
188 | - * @param boolean $requireAll |
|
189 | - * @return $this |
|
190 | - */ |
|
191 | - public function setRequireAll($requireAll) { |
|
192 | - $this->requireAll = $requireAll; |
|
193 | - |
|
194 | - return $this; |
|
195 | - } |
|
69 | + /** |
|
70 | + * Constructor |
|
71 | + */ |
|
72 | + public function __construct() { |
|
73 | + $this->repositories = []; |
|
74 | + $this->packages = []; |
|
75 | + $this->requireAll = false; |
|
76 | + $this->requireDependencies = true; |
|
77 | + $this->requireDevDependencies = false; |
|
78 | + } |
|
79 | + |
|
80 | + /** |
|
81 | + * Get name |
|
82 | + * |
|
83 | + * @return string $name |
|
84 | + */ |
|
85 | + public function getName() { |
|
86 | + return $this->name; |
|
87 | + } |
|
88 | + |
|
89 | + /** |
|
90 | + * Get homepage |
|
91 | + * |
|
92 | + * @return string $homepage |
|
93 | + */ |
|
94 | + public function getHomepage() { |
|
95 | + return $this->homepage; |
|
96 | + } |
|
97 | + |
|
98 | + /** |
|
99 | + * @param string $homepage |
|
100 | + * @return $this |
|
101 | + */ |
|
102 | + public function setHomepage($homepage) { |
|
103 | + $this->homepage = $homepage; |
|
104 | + |
|
105 | + return $this; |
|
106 | + } |
|
107 | + |
|
108 | + /** |
|
109 | + * Get repositories |
|
110 | + * |
|
111 | + * @return RepositoryCollection<Repository> |
|
112 | + */ |
|
113 | + public function getRepositories() { |
|
114 | + return $this->repositories; |
|
115 | + } |
|
116 | + |
|
117 | + /** |
|
118 | + * Set repositories |
|
119 | + * |
|
120 | + * @param RepositoryCollection $repositories |
|
121 | + * |
|
122 | + * @return static |
|
123 | + */ |
|
124 | + public function setRepositories(RepositoryCollection $repositories) { |
|
125 | + $this->repositories = $repositories; |
|
126 | + |
|
127 | + return $this; |
|
128 | + } |
|
129 | + |
|
130 | + /** |
|
131 | + * @param Archive $archive |
|
132 | + */ |
|
133 | + public function setArchive(Archive $archive = null) { |
|
134 | + $this->archive = $archive; |
|
135 | + } |
|
136 | + |
|
137 | + /** |
|
138 | + * @return Archive |
|
139 | + */ |
|
140 | + public function getArchive() { |
|
141 | + return $this->archive; |
|
142 | + } |
|
143 | + |
|
144 | + /** |
|
145 | + * Get packages |
|
146 | + * |
|
147 | + * @return PackageCollection<Package> |
|
148 | + */ |
|
149 | + public function getPackages() { |
|
150 | + return $this->packages; |
|
151 | + } |
|
152 | + |
|
153 | + /** |
|
154 | + * @param PackageCollection $packages |
|
155 | + * @return $this |
|
156 | + */ |
|
157 | + public function setPackages(PackageCollection $packages) { |
|
158 | + $this->packages = $packages; |
|
159 | + |
|
160 | + return $this; |
|
161 | + } |
|
162 | + |
|
163 | + /** |
|
164 | + * @return boolean |
|
165 | + */ |
|
166 | + public function getRequireDevDependencies() { |
|
167 | + return $this->requireDevDependencies; |
|
168 | + } |
|
169 | + |
|
170 | + /** |
|
171 | + * @param boolean $requireDevDependencies |
|
172 | + * @return Config |
|
173 | + */ |
|
174 | + public function setRequireDevDependencies($requireDevDependencies) { |
|
175 | + $this->requireDevDependencies = $requireDevDependencies; |
|
176 | + |
|
177 | + return $this; |
|
178 | + } |
|
179 | + |
|
180 | + /** |
|
181 | + * @return boolean |
|
182 | + */ |
|
183 | + public function getRequireAll() { |
|
184 | + return $this->requireAll; |
|
185 | + } |
|
186 | + |
|
187 | + /** |
|
188 | + * @param boolean $requireAll |
|
189 | + * @return $this |
|
190 | + */ |
|
191 | + public function setRequireAll($requireAll) { |
|
192 | + $this->requireAll = $requireAll; |
|
193 | + |
|
194 | + return $this; |
|
195 | + } |
|
196 | 196 | |
197 | 197 | /** |
198 | 198 | * @return string |