public function setPropertyPath($propertyPath) { $this->propertyPath = $propertyPath === null || $propertyPath === '' ? null : new PropertyPath($propertyPath); }