public function routine(\XPSPL\Routine $routine = null) { if ($this->get_idle()->has_time_passed()) { $routine->add_signal($this); $this->get_idle()->set_time($this->_time); } $routine->add_idle($this); return true; }