- author Bernhard Schussek
CloneableInstantiable
- Implements
Stringable
Methods |
public __construct(Symfony |
public __toString() : string Returns the current property path as string. |
public append(Symfony Appends a (sub-) path to the current path.
|
public appendIndex(string $name) : void Appends an index element to the current path. |
public appendProperty(string $name) : void Appends a property element to the current path. |
public getLength() : int Returns the length of the current path. |
public getPropertyPath() : ?Symfony Returns the current property path. |
public remove(int $offset, int $length = 1) : void Removes elements from the current path.
|
public replace(int $offset, int $length, Symfony Replaces a sub-path by a different (sub-) path.
|
public replaceByIndex(int $offset, ?string $name = NULL) : void Replaces a property element by an index element.
|
public replaceByProperty(int $offset, ?string $name = NULL) : void Replaces an index element by a property element.
|
Properties |
private array $elements = [] |
private array $isIndex = [] |
Methods |
private resize(int $offset, int $cutLength, int $insertionLength) : void Resizes the path so that a chunk of length $cutLength is removed at $offset and another chunk of length $insertionLength can be inserted. |