|
@@ 322-328 (lines=7) @@
|
| 319 |
|
* @return integer |
| 320 |
|
* @throws \OutOfBoundsException When no property for <b>$name</b> exists. |
| 321 |
|
*/ |
| 322 |
|
public function getIntProperty($name) |
| 323 |
|
{ |
| 324 |
|
if (isset($this->properties[$name])) { |
| 325 |
|
return (int) $this->properties[$name]; |
| 326 |
|
} |
| 327 |
|
throw new \OutOfBoundsException('Property "' . $name . '" does not exist.'); |
| 328 |
|
} |
| 329 |
|
|
| 330 |
|
/** |
| 331 |
|
* Returns the raw string value of a configured property or throws an |
|
@@ 338-344 (lines=7) @@
|
| 335 |
|
* @return string |
| 336 |
|
* @throws \OutOfBoundsException When no property for <b>$name</b> exists. |
| 337 |
|
*/ |
| 338 |
|
public function getStringProperty($name) |
| 339 |
|
{ |
| 340 |
|
if (isset($this->properties[$name])) { |
| 341 |
|
return $this->properties[$name]; |
| 342 |
|
} |
| 343 |
|
throw new \OutOfBoundsException('Property "' . $name . '" does not exist.'); |
| 344 |
|
} |
| 345 |
|
|
| 346 |
|
/** |
| 347 |
|
* This method adds a violation to all reports for this violation type and |