Пример #1
0
 /**
  * Constructs this CountingVisitor.
  *
  * @param integer $count The initial count.
  */
 public function __construct($count = 0)
 {
     parent::__construct();
     $this->count = 0;
 }
Пример #2
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
 }
Пример #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;
 }
Пример #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;
 }
Пример #5
0
 /**
  * Constructs this PrintingVisitor.
  */
 public function __construct($stream)
 {
     parent::__construct();
     $this->stream = $stream;
 }