# WildcardsInterface

Chevere\Interfaces\Router\Route\WildcardsInterface

view source (opens new window)

# Extends

# Description

Describes the component in charge of collecting objects implementing RouteWildcardInterface.

# Methods

# withAddedWildcard

Return an instance with the specified $wildcard.

Parameters

Return

self

This method MUST retain the state of the current instance, and return an instance that contains the specified $wildcard.

This method should overrides existing wildcards.


# has

Returns a boolean indicating whether the instance has a given RouteWildcardInterface.

Parameters

  • wildcardName: string

Return

bool


# get

Provides access to the target RouteWildcardInterface instance.

Parameters

  • wildcardName: string

# hasPos

Returns a boolean indicating whether the instance has RouteWildcardInterface in the given pos.

Parameters

  • pos: int

Return

bool


# getPos

Provides access to the target RouteWildcardInterface instance in the given pos.

Parameters

  • pos: int

# getGenerator


# keys

Provides access to the object keys.

Return

array


# toArray

Returns an array, representing the object itself or some of its data/properties.

Return

array


Last Updated: 5/1/2021, 2:31:10 PM