| Conditions | 4 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 13 | public function addParameter(string $name, Type\Enums\ParameterTypeEnum|string $type, mixed $value, mixed $list = null): AbstractAgenda |
|
| 26 | { |
||
| 27 | 13 | $object = $this->data->header ?? null; |
|
| 28 | 13 | if ($object && is_object($object) && method_exists($object, 'addParameter')) { |
|
| 29 | 13 | $object->addParameter($name, $type, $value, $list); |
|
| 30 | } |
||
| 31 | 13 | return $this; |
|
|
|
|||
| 32 | } |
||
| 34 |