Documentation

PropertyPath
in package

Contains utility methods for dealing with property paths.

For more extensive functionality, use Symfony's PropertyAccess component.

Tags
author

Bernhard Schussek bschussek@gmail.com

Table of Contents

Methods

append()  : string
Appends a path to a given property path.
__construct()  : mixed
Not instantiable.

Methods

append()

Appends a path to a given property path.

public static append(string $basePath, string $subPath) : string

If the base path is empty, the appended path will be returned unchanged. If the base path is not empty, and the appended path starts with a squared opening bracket ("["), the concatenation of the two paths is returned. Otherwise, the concatenation of the two paths is returned, separated by a dot (".").

Parameters
$basePath : string
$subPath : string
Return values
string

__construct()

Not instantiable.

private __construct() : mixed

        
On this page

Search results