@@ 231-242 (lines=12) @@ | ||
228 | * @param array $data Additional data that should be passed to the message formatter. |
|
229 | * @return $this |
|
230 | */ |
|
231 | public function addArbitraryRequirement( |
|
232 | $version, |
|
233 | $line = -1, |
|
234 | $msg = null, |
|
235 | $reason = Reason::UNKNOWN, |
|
236 | array $data = [] |
|
237 | ) { |
|
238 | $this->addArbitraryVersionConstraint(self::VERSION_LIMIT_MAX, $version, $line, $msg, $reason, |
|
239 | $data); |
|
240 | ||
241 | return $this; |
|
242 | } |
|
243 | ||
244 | /** |
|
245 | * Add a requirement identified by reason id |
|
@@ 302-313 (lines=12) @@ | ||
299 | * @param array $data |
|
300 | * @return $this |
|
301 | */ |
|
302 | public function addArbitraryLimit( |
|
303 | $version, |
|
304 | $line = -1, |
|
305 | $msg = null, |
|
306 | $reason = Reason::UNKNOWN, |
|
307 | array $data = [] |
|
308 | ) { |
|
309 | $this->addArbitraryVersionConstraint(self::VERSION_LIMIT_MIN, $version, $line, $msg, $reason, |
|
310 | $data); |
|
311 | ||
312 | return $this; |
|
313 | } |
|
314 | ||
315 | /** |
|
316 | * @param int $type |