public function extend($annotation)
    {
        $params = get_object_vars($annotation);
        foreach ($params as $property => $value) {
            if (property_exists($this, $property) && !in_array($property, ['name', 'route'])) {
                if (!$this->$property) {
                    $this->$property = $value;
                }
            }
        }
    }
public function extend($annotation)
    {
        $params = get_object_vars($annotation);
        foreach ($params as $property => $value) {
            if (property_exists($this, $property) && !in_array($property, ['name', 'route'])) {
                if (!$this->$property) {
                    $this->$property = $value;
                }
            }
        }
    }
public function extend ( $ annotation ) { $ params = get_object_vars ( $ annotation ) ; foreach ( $ params as $ property => $ value ) { if ( property_exists ( $ this , $ property ) && ! in_array ( $ property , [ 'name' , 'route' ] ) ) { if ( ! $ this -> $ property ) { $ this -> $ property = $ value ; } } } }
Extend this route with data from another one.

@param AnnotationInterface $annotation
Extend this route with data from another one .