1 | <?php |
||
2 | /** |
||
3 | * This file is part of riesenia/pohoda package. |
||
4 | * |
||
5 | * Licensed under the MIT License |
||
6 | * (c) RIESENIA.com |
||
7 | */ |
||
8 | |||
9 | declare(strict_types=1); |
||
10 | |||
11 | namespace Riesenia\Pohoda\Common; |
||
12 | |||
13 | |||
14 | use Riesenia\Pohoda\AbstractAgenda; |
||
15 | |||
16 | |||
17 | trait AddParameterToHeaderTrait |
||
18 | { |
||
19 | /** |
||
20 | * Set user-defined parameter. |
||
21 | * |
||
22 | * @param string $name (can be set without preceding VPr / RefVPr) |
||
23 | * @param string $type |
||
24 | * @param mixed $value |
||
25 | * @param mixed|null $list |
||
26 | * |
||
27 | * @return AbstractAgenda |
||
28 | */ |
||
29 | 13 | public function addParameter(string $name, string $type, mixed $value, mixed $list = null): AbstractAgenda |
|
30 | { |
||
31 | 13 | $object = $this->data['header']; |
|
32 | /** @var self $object */ |
||
33 | 13 | $object->addParameter($name, $type, $value, $list); |
|
34 | 13 | return $this; |
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
35 | } |
||
36 | } |
||
37 |