Skip to content

Commit c965a1b

Browse files
committed
Added constructor for ParameterDefinition.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
1 parent 0e9fdb5 commit c965a1b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Components/ParameterDefinition.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ class ParameterDefinition extends Component
4242
*/
4343
public $type;
4444

45+
/**
46+
* Constructor.
47+
*
48+
* @param string $name Parameter's name.
49+
* @param string $inOut Parameter's directional type (IN / OUT or None).
50+
* @param DataType $type Parameter's type.
51+
*/
52+
public function __construct($name = null, $inOut = null, $type = null)
53+
{
54+
$this->name = $name;
55+
$this->inOut = $inOut;
56+
$this->type = $type;
57+
}
58+
4559
/**
4660
* @param Parser $parser the parser that serves as context
4761
* @param TokensList $list the list of tokens that are being parsed

0 commit comments

Comments
 (0)