Ejemplo n.º 1
0
 /**
  * IntegerNode constructor.
  * @param $header integer|Node
  */
 public function __construct($header, $className = null)
 {
     parent::__construct($className);
     $this->header = $header;
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 /**
  * IntegerNode constructor.
  * @param $index integer
  */
 public function __construct($index, $className = null)
 {
     parent::__construct($className);
     $this->index = $index;
 }
Ejemplo n.º 4
0
 /**
  * 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;
 }
Ejemplo n.º 5
0
 /**
  * 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;
 }