if (isset($data['serialized_name'
])) { if (!\
is_string($data['serialized_name'
]) || '' ===
$data['serialized_name'
]) { throw new MappingException(sprintf('The "serialized_name" value must be a non-empty string in "%s" for the attribute "%s" of the class "%s".',
$this->file,
$attribute,
$classMetadata->
getName()));
} $attributeMetadata->
setSerializedName($data['serialized_name'
]);
} if (isset($data['serialized_path'
])) { try { $attributeMetadata->
setSerializedPath(new PropertyPath((string) $data['serialized_path'
]));
} catch (InvalidPropertyPathException
) { throw new MappingException(sprintf('The "serialized_path" value must be a valid property path in "%s" for the attribute "%s" of the class "%s".',
$this->file,
$attribute,
$classMetadata->
getName()));
} } if (isset($data['ignore'
])) { if (!\
is_bool($data['ignore'
])) { throw new MappingException(sprintf('The "ignore" value must be a boolean in "%s" for the attribute "%s" of the class "%s".',
$this->file,
$attribute,
$classMetadata->
getName()));
} $attributeMetadata->
setIgnore($data['ignore'
]);
}