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

@param ResourcePath $path

@return array
Get the names for the given path .