Kahlan\Jit\Node\NodeDef::__construct PHP Method

__construct() public method

The constructor.
public __construct ( string $body = '', string $type = null )
$body string The textual body of the node.
$type string The type of the node.
    public function __construct($body = '', $type = null)
    {
        if ($type) {
            $this->type = $type;
        }
        $this->body = $body;
    }