Total Complexity | 4 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class ParameterDefinition implements Component |
||
16 | { |
||
17 | /** |
||
18 | * The name of the new column. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | public $name; |
||
23 | |||
24 | /** |
||
25 | * Parameter's direction (IN, OUT or INOUT). |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | public $inOut; |
||
30 | |||
31 | /** |
||
32 | * The data type of thew new column. |
||
33 | * |
||
34 | * @var DataType |
||
35 | */ |
||
36 | public $type; |
||
37 | |||
38 | /** |
||
39 | * @param string $name parameter's name |
||
40 | * @param string $inOut parameter's directional type (IN / OUT or None) |
||
41 | * @param DataType $type parameter's type |
||
42 | */ |
||
43 | 52 | public function __construct(string|null $name = null, string|null $inOut = null, DataType|null $type = null) |
|
44 | { |
||
45 | 52 | $this->name = $name; |
|
46 | 52 | $this->inOut = $inOut; |
|
47 | 52 | $this->type = $type; |
|
48 | } |
||
49 | |||
50 | 6 | public function build(): string |
|
59 | 6 | ); |
|
60 | } |
||
61 | |||
62 | 6 | public function __toString(): string |
|
67 |