name = $name; $this->data = $args; $this->handlerList = $list ?: new HandlerList(); if (!isset($this->data['@http'])) { $this->data['@http'] = []; } if (!isset($this->data['@context'])) { $this->data['@context'] = []; } } public function __clone() { $this->handlerList = clone $this->handlerList; } public function getName() { return $this->name; } public function hasParam($name) { return array_key_exists($name, $this->data); } public function getHandlerList() { return $this->handlerList; } /** @deprecated */ public function get($name) { return $this[$name]; } }