Total Complexity | 4 |
Total Lines | 44 |
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 | public string|null $name = null; |
||
21 | |||
22 | /** |
||
23 | * Parameter's direction (IN, OUT or INOUT). |
||
24 | */ |
||
25 | public string|null $inOut = null; |
||
26 | |||
27 | /** |
||
28 | * The data type of thew new column. |
||
29 | */ |
||
30 | public DataType|null $type = null; |
||
31 | |||
32 | /** |
||
33 | * @param string|null $name parameter's name |
||
34 | * @param string|null $inOut parameter's directional type (IN / OUT or None) |
||
35 | * @param DataType|null $type parameter's type |
||
36 | */ |
||
37 | 52 | public function __construct(string|null $name = null, string|null $inOut = null, DataType|null $type = null) |
|
38 | { |
||
39 | 52 | $this->name = $name; |
|
40 | 52 | $this->inOut = $inOut; |
|
41 | 52 | $this->type = $type; |
|
42 | } |
||
43 | |||
44 | 6 | public function build(): string |
|
53 | 6 | ); |
|
54 | } |
||
55 | |||
56 | 6 | public function __toString(): string |
|
61 |