protected function getNames(ResourcePath $path) { return isset($this->names[$path->method]) ? [$path->method => $this->names[$path->method]] : []; }