Represents a segment in a resource template. This is used internally by RelativeResourceTemplate, but is not intended for public use and may change without notice.
- internal
CloneableInstantiable
- Implements
Stringable
| Constants |
| public Google |
| public Google |
| public Google |
| public Google |
| Methods |
| public __construct(int $segmentType, ?string $value = NULL, ?string $key = NULL, ?Google Segment constructor.
|
public __toString() : string
|
public getKey()
|
public getSegmentType()
|
public getSeparator()
|
public getTemplate()
|
public getValue()
|
| public matches(string $value) Checks if $value matches this Segment.
|
| Properties |
| private ?string $key |
| private int $segmentType |
| private ?string $separator |
| private ?string $stringRepr |
| private ?Google |
| private ?string $value |
| Methods |
| private static isValidBinding(string $binding) Check if $binding is a valid segment binding. Segment bindings may contain any characters except a forward slash ('/'), and may not be empty.
|
| private static isValidDoubleWildcardBinding(string $binding) Check if $binding is a valid double wildcard binding. Segment bindings may contain any characters, but may not be empty.
|
| Methods |
| private static isValidBinding(string $binding) Check if $binding is a valid segment binding. Segment bindings may contain any characters except a forward slash ('/'), and may not be empty.
|
| private static isValidDoubleWildcardBinding(string $binding) Check if $binding is a valid double wildcard binding. Segment bindings may contain any characters, but may not be empty.
|