mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Created an interface for PersonJsonNormalizer
This commit is contained in:
parent
56a4fd3fa0
commit
b992bde41d
@ -33,11 +33,7 @@ use function array_key_exists;
|
|||||||
/**
|
/**
|
||||||
* Serialize a Person entity.
|
* Serialize a Person entity.
|
||||||
*/
|
*/
|
||||||
class PersonJsonNormalizer implements
|
class PersonJsonNormalizer implements PersonJsonNormalizerInterface
|
||||||
DenormalizerAwareInterface,
|
|
||||||
DenormalizerInterface,
|
|
||||||
NormalizerAwareInterface,
|
|
||||||
NormalizerInterface
|
|
||||||
{
|
{
|
||||||
use DenormalizerAwareTrait;
|
use DenormalizerAwareTrait;
|
||||||
|
|
||||||
|
@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Chill is a software for social workers
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view
|
||||||
|
* the LICENSE file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Chill\PersonBundle\Serializer\Normalizer;
|
||||||
|
|
||||||
|
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface;
|
||||||
|
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
||||||
|
use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface;
|
||||||
|
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serialize a Person entity.
|
||||||
|
*/
|
||||||
|
interface PersonJsonNormalizerInterface extends
|
||||||
|
DenormalizerAwareInterface,
|
||||||
|
DenormalizerInterface,
|
||||||
|
NormalizerAwareInterface,
|
||||||
|
NormalizerInterface
|
||||||
|
{
|
||||||
|
public function denormalize($data, $type, $format = null, array $context = []);
|
||||||
|
|
||||||
|
public function normalize($person, $format = null, array $context = []);
|
||||||
|
|
||||||
|
public function supportsDenormalization($data, $type, $format = null);
|
||||||
|
|
||||||
|
public function supportsNormalization($data, $format = null): bool;
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user