Symfony\Component\PropertyAccess\PropertyPath::__construct
Constructs a property path from a string.
Signature
public function __construct(PropertyPath|string
$propertyPath )
Parameters
$propertyPath
— object- The property path as string or instance
Errors/Exceptions
-
UnexpectedTypeException
- If the given path is not a string
-
InvalidPropertyPathException
- If the syntax of the property path is not valid