| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | 6 | public function __construct(ErrorInterface $error, StringFormat $formatter) |
|
| 34 | { |
||
| 35 | 6 | parent::__construct('Parameters'); |
|
| 36 | 6 | $this->error = $error; |
|
| 37 | 6 | $this->formatter = $formatter; |
|
| 38 | |||
| 39 | 6 | $this->setTitle(new Title('Parameters')); |
|
| 40 | |||
| 41 | 6 | foreach ((array) $this->error->getParameters() as $name => $parameter) { |
|
| 42 | 6 | $this->addField(new Field($name, $this->parseParameter($parameter))); |
|
| 43 | 6 | } |
|
| 44 | 6 | } |
|
| 45 | |||
| 79 |