<?php

declare(strict_types=1);

namespace Itdatex\EInvoiceCore\Vendor\JMS\Serializer\Accessor;

use Itdatex\EInvoiceCore\Vendor\JMS\Serializer\DeserializationContext;
use Itdatex\EInvoiceCore\Vendor\JMS\Serializer\Metadata\PropertyMetadata;
use Itdatex\EInvoiceCore\Vendor\JMS\Serializer\SerializationContext;

/**
 * @author Asmir Mustafic <goetas@gmail.com>
 */
interface AccessorStrategyInterface
{
    /**
     * @return mixed
     */
    public function getValue(object $object, PropertyMetadata $metadata, SerializationContext $context);

    /**
     * @param mixed $value
     */
    public function setValue(object $object, $value, PropertyMetadata $metadata, DeserializationContext $context): void;
}
