ApiPlatform\Core\Serializer\AbstractItemNormalizer::setValue PHP Method

setValue() private method

Sets a value of the object using the PropertyAccess component.
private setValue ( object $object, string $attributeName, mixed $value )
$object object
$attributeName string
$value mixed
    private function setValue($object, string $attributeName, $value)
    {
        try {
            $this->propertyAccessor->setValue($object, $attributeName, $value);
        } catch (NoSuchPropertyException $exception) {
            // Properties not found are ignored
        }
    }