/**
  * Export route settings to array so they can be merged with another route.
  *
  * @return array
  */
 public function toArray()
 {
     $values = [];
     if ($this->prefix !== null) {
         $values['prefix'] = $this->getPrefix();
     }
     if ($this->name !== null) {
         $values['as'] = $this->name;
     }
     if (count($this->parameters) > 0) {
         $values['parameters'] = $this->parameters;
     }
     return array_merge($values, parent::toArray());
 }