Tale\Jade\Parser\Node::__construct PHP Метод

__construct() публичный Метод

It can be appended to any node after that The type can be any kind of string
public __construct ( string $type, integer | null $line = null, integer | null $offset = null )
$type string the type of this node
$line integer | null the line at which we found this node
$offset integer | null the offset in a line we found this node at
    public function __construct($type, $line = null, $offset = null)
    {
        $this->type = $type;
        $this->line = $line;
        $this->offset = $offset;
        $this->parent = null;
        $this->children = [];
        $this->data = [];
    }