1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace Symfony\Component\Validator\Util;
- class PropertyPath
- {
-
- public static function append($basePath, $subPath)
- {
- if ('' !== (string) $subPath) {
- if ('[' === $subPath[0]) {
- return $basePath.$subPath;
- }
- return '' !== (string) $basePath ? $basePath.'.'.$subPath : $subPath;
- }
- return $basePath;
- }
-
- private function __construct()
- {
- }
- }
|