Symfony\Component\PropertyAccess\PropertyPathBuilder
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class PropertyPathBuilder
{
- // methods
- public void __construct()
- public void append()
- public void appendIndex()
- public void appendProperty()
- public void remove()
- public void replace()
- public void replaceByIndex()
- public void replaceByProperty()
- public integer getLength()
- public PropertyPathInterface getPropertyPath()
- public string __toString()
- private void resize()
Members
private
- $elements — array
- $isIndex — array
Methods
private
- resize() — Resizes the path so that a chunk of length $cutLength is removed at $offset and another chunk of length $insertionLength can be inserted.
public
- __construct() — Creates a new property path builder.
- __toString() — Returns the current property path as string.
- append() — Appends a (sub-) path to the current path.
- appendIndex() — Appends an index element to the current path.
- appendProperty() — Appends a property element to the current path.
- getLength() — Returns the length of the current path.
- getPropertyPath() — Returns the current property path.
- remove() — Removes elements from the current path.
- replace() — Replaces a sub-path by a different (sub-) path.
- replaceByIndex() — Replaces a property element by an index element.
- replaceByProperty() — Replaces an index element by a property element.