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); }
public function __construct($options = []) { $this->stopwatch = new Stopwatch(); parent::__construct($options); }