1 | <?php |
||
11 | class Param |
||
12 | { |
||
13 | /** @var string */ |
||
14 | private $name; |
||
15 | /** @var string */ |
||
16 | private $type; |
||
17 | |||
18 | /** |
||
19 | * Param constructor. |
||
20 | * @param string $name |
||
21 | * @param string $type |
||
22 | */ |
||
23 | 2 | public function __construct($name, $type = '') |
|
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | public function name(): string |
||
36 | |||
37 | /** |
||
38 | * @param string $name |
||
39 | * @return Param |
||
40 | */ |
||
41 | 2 | private function setName(string $name) |
|
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | public function type(): string |
||
59 | } |
||
60 |