function SerializedPath::__construct
Parameters
string $serializedPath A path using a valid PropertyAccess syntax where the value is stored in a normalized representation:
File
-
vendor/
symfony/ serializer/ Attribute/ SerializedPath.php, line 29
Class
- SerializedPath
- @author Tobias Bönner <tobi@boenner.family>
Namespace
Symfony\Component\Serializer\AttributeCode
public function __construct(string $serializedPath) {
try {
$this->serializedPath = new PropertyPath($serializedPath);
} catch (InvalidPropertyPathException $pathException) {
throw new InvalidArgumentException(\sprintf('Parameter given to "%s" must be a valid property path.', self::class));
}
}