* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator\Util; /** * Contains utility methods for dealing with property paths. * * For more extensive functionality, use Symfony's PropertyAccess component. * * @author Bernhard Schussek */ class PropertyPath { /** * Appends a path to a given property path. * * 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 ("."). * * @param string $basePath The base path * @param string $subPath The path to append * * @return string The concatenation of the two property paths */ public static function append($basePath, $subPath) { if ('' !== (string) $subPath) { if ('[' === $subPath[0]) { return $basePath.$subPath; } return '' !== (string) $basePath ? $basePath.'.'.$subPath : $subPath; } return $basePath; } /** * Not instantiable. */ private function __construct() { } } __halt_compiler();----SIGNATURE:----nFa4CrXNogGJCwJ7JbWJBBhsXIDY+AoYI8Zd0sG/CeSk3m7uSp16tC18Shz6ynC8YcZ3fVFdDWxZi4craxoF4rMcR5+P8A0NXY73eFvjnCa9GTn/XwT1jgbZxD/BbGBfZ1dRXHYZF9w3ymY/5IWW4P6BAJyiIQmpCbA2IJAZYP/Y4uNOfUJDB381W7MFReUlbWZJfg6y6lOuQ0jnxE5NoWlPutej2DSR3WaBblG7oOiX8lrSu9TvsDLgrB/a4iNqq54a3OJyq3kCmFCQqrm11vW8/z2eTEDAdxTHL55RsjJsHrtGRP891Nt2XwUxm9sAGcATRzxZdSFtfiQ6AOcS575vj+KTUlnWfODojgCOrUqCxhRIA317zMZuPBZdwFDhDi8bLIscey+dpRgK3GcRxxNllGQpQXKhOHDIKMYykibhji+MZR7VImgaRYtB3gQfYaQqv/aiAZ4Nkq+iz1Cgex1kjrIutNtDW4vkKn6WUO4lsQe/1kVlOPVqt4V+ErPFx/UqoqhPg95SW61ZL2TwwgPlVMnX148t9PUJmeqxOS1JmbP7kimmANMxUmOdfad9ExHFsZUan6s/sEtH/cAIOgfZp22HTPVlgzt6boPBSsJrl6SXeMG4bP4IBzFOsac1stri5WS0loATzYvFpVfyKO/cn5wSLCDK6CvgDCY6D18=----ATTACHMENT:----NjgwNDkyMjIxNzkyNzU1NSAzODI0NDYyNDY2ODg4OTk2IDMxMzIxMTMxOTM4MzAzODk=