/** * IntegerNode constructor. * @param $header integer|Node */ public function __construct($header, $className = null) { parent::__construct($className); $this->header = $header; }
/** * StructNode constructor. * @param int|Node $tag * @param integer[] $choices */ public function __construct($tag, array $choices, $className = null) { parent::__construct($className); $this->tag = $tag; $this->choices = $choices; }
/** * IntegerNode constructor. * @param $index integer */ public function __construct($index, $className = null) { parent::__construct($className); $this->index = $index; }
/** * IntegerNode constructor. * @param $bits integer * @param $constant integer */ public function __construct($bits, $constant = 0, $className = null) { parent::__construct($className); $this->bits = $bits; $this->constant = $constant; }
/** * StructNode constructor. * @param \integer[] $fields * @param $className string the class name * @param $abstract boolean ignores the versioned type when extracting this struct */ public function __construct(array $fields, $className = null, $abstract = false) { parent::__construct($className); $this->fields = $fields; $this->abstract = $abstract; }