public function saveDecoratorParams($name, $params) { if (RtHelper::checkDecorator($name)) { $this->storage[$this->last['method']][$this->last['route']]['decorators'][$name] = $params; } else { throw new RtException("Decorator $name wasn't found in list"); } }
public function __call($name, $arguments) { if (RtHelper::checkHTTPMethod($name)) { if (isset($arguments[0])) { return $this->store($name, $arguments[0]); } } elseif (RtHelper::checkDecorator($name)) { if (isset($arguments[0])) { return $this->decorate($name, $arguments[0]); } else { return $this->decorate($name); } } }