public function addTickCallback($callback) { $this->tick++; $this->tickCallbacks[$this->tick] = $callback; }