示例#1
0
 /**
  * Constructor
  *
  * @param  int $index
  * @param  int $size
  * @param  parent $backing
  */
 public function __construct($index, $size, parent $backing)
 {
     parent::__construct($backing->variables, $backing->parent);
     $this->index = $index;
     $this->last = $size - 1;
     $this->backing = $backing;
 }
示例#2
0
 /**
  * Constructor
  *
  * @param  string $key
  * @param  bool $first
  * @param  parent $backing
  */
 public function __construct($key, $first, parent $backing)
 {
     parent::__construct($backing->variables, $backing->parent);
     $this->key = $key;
     $this->first = $first;
     $this->backing = $backing;
 }