Copied!
CloneableInstantiable
Methods
public __construct(Symfony\Component\PropertyAccess\PropertyPathInterface|string|?null $path = NULL)
public __toString() : string
 

Returns the current property path as string.

public append(Symfony\Component\PropertyAccess\PropertyPathInterface|string $path, int $offset = 0, int $length = 0)
 

Appends a (sub-) path to the current path.

public appendIndex(string $name)
 

Appends an index element to the current path.

public appendProperty(string $name)
 

Appends a property element to the current path.

public getLength() : int
 

Returns the length of the current path.

public getPropertyPath() : ?Symfony\Component\PropertyAccess\PropertyPathInterface
 

Returns the current property path.

public remove(int $offset, int $length = 1)
 

Removes elements from the current path.

public replace(int $offset, int $length, Symfony\Component\PropertyAccess\PropertyPathInterface|string $path, int $pathOffset = 0, int $pathLength = 0)
 

Replaces a sub-path by a different (sub-) path.

public replaceByIndex(int $offset, ?string $name = NULL)
 

Replaces a property element by an index element.

public replaceByProperty(int $offset, ?string $name = NULL)
 

Replaces an index element by a property element.

Properties
private $elements
private $isIndex
Methods
private resize(int $offset, int $cutLength, int $insertionLength)
 

Resizes the path so that a chunk of length $cutLength is
removed at $offset and another chunk of length $insertionLength
can be inserted.

© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration