Esempio n. 1
0
 /**
  * Constructs this CountingVisitor.
  *
  * @param integer $count The initial count.
  */
 public function __construct($count = 0)
 {
     parent::__construct();
     $this->count = 0;
 }
Esempio n. 2
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
 }
Esempio n. 3
0
 /**
  * Constructs this ReducingVisitor.
  *
  * @param callback $callback A callback function.
  * @param mixed $initialState The initial state.
  */
 public function __construct($callback, $initialState)
 {
     parent::__construct();
     $this->callback = $callback;
     $this->state = $initialState;
 }
Esempio n. 4
0
 /**
  * Constructs an latest time visitor that fills the given array.
  *
  * @param object BasicArray $latestTime Latest times array.
  */
 public function __construct($latestTime)
 {
     parent::__construct();
     $this->latestTime = $latestTime;
 }
Esempio n. 5
0
 /**
  * Constructs this PrintingVisitor.
  */
 public function __construct($stream)
 {
     parent::__construct();
     $this->stream = $stream;
 }