Esempio n. 1
0
 public function __construct($options = [])
 {
     $id = ftok(__FILE__, "i");
     $memory = new SharedMemory($id);
     $this->setMemory($memory);
     if (!$this->memory->exists($id)) {
         $this->memory->write(json_encode([]));
     }
     parent::__construct($options);
 }
Esempio n. 2
0
 public function __construct($options = [])
 {
     $this->stopwatch = new Stopwatch();
     parent::__construct($options);
 }