private function optionalAttributesProvided(RoutePath $path): bool
    {
        $pathAttributes = array_map(function (Attribute $attribute) {
            return $attribute->getName();
        }, $path->getAttributes());

        $specifiedAttributes = array_keys($this->attributes);

        $unfilledAttributes = array_intersect($pathAttributes, $specifiedAttributes);

        return !empty($unfilledAttributes);
    }
private function optionalAttributesProvided(RoutePath $path): bool
    {
        $pathAttributes = array_map(function (Attribute $attribute) {
            return $attribute->getName();
        }, $path->getAttributes());

        $specifiedAttributes = array_keys($this->attributes);

        $unfilledAttributes = array_intersect($pathAttributes, $specifiedAttributes);

        return !empty($unfilledAttributes);
    }
private function optionalAttributesProvided ( RoutePath $ path ) : bool { $ pathAttributes = array_map ( function ( Attribute $ attribute ) { return $ attribute -> getName ( ) ; } , $ path -> getAttributes ( ) ) ; $ specifiedAttributes = array_keys ( $ this -> attributes ) ; $ unfilledAttributes = array_intersect ( $ pathAttributes , $ specifiedAttributes ) ; return ! empty ( $ unfilledAttributes ) ; }
Determines if there were any optional attributes provided by the user.

@param RoutePath $path
@return bool
Determines if there were any optional attributes provided by the user .