/**
* Set the name of the view
*
* @param string $name Name of the view
*
* @return RouterViewConfiguration This object for chaining
*
* @since 3.5
*/
public function setName($name)
{
$this->name = $name;
array_pop($this->path);
$this->path[] = $name;
return $this;
}