/** * overriden method with the correct implementation for our * domain logic * {@inheritDoc} */ protected function _applies() { echo $this->light->toString(); return (bool) $this->light->isReadyToSwitch(); }