PHP Class Lemon\RestBundle\Serializer\IdCollectionHandler

Inheritance: implements JMS\Serializer\Handler\SubscribingHandlerInterface
ファイルを表示 Open project: stanlemon/rest-bundle

Protected Properties

Property Type Description
$doctrine Symfony\Bridge\Doctrine\ManagerRegistry

Public Methods

Method Description
__construct ( Symfony\Bridge\Doctrine\ManagerRegistry $doctrine )
deserializeIdCollectionFromJson ( JMS\Serializer\JsonDeserializationVisitor $visitor, $data, array $type ) : ArrayCollection
getSubscribingMethods ( )
serializeIdCollectionToJson ( JMS\Serializer\JsonSerializationVisitor $visitor, Doctrine\Common\Collections\Collection $idCollection, array $type, JMS\Serializer\Context $context ) : array

Method Details

__construct() public method

public __construct ( Symfony\Bridge\Doctrine\ManagerRegistry $doctrine )
$doctrine Symfony\Bridge\Doctrine\ManagerRegistry

deserializeIdCollectionFromJson() public method

public deserializeIdCollectionFromJson ( JMS\Serializer\JsonDeserializationVisitor $visitor, $data, array $type ) : ArrayCollection
$visitor JMS\Serializer\JsonDeserializationVisitor
$data
$type array
return Doctrine\Common\Collections\ArrayCollection

getSubscribingMethods() public static method

public static getSubscribingMethods ( )

serializeIdCollectionToJson() public method

public serializeIdCollectionToJson ( JMS\Serializer\JsonSerializationVisitor $visitor, Doctrine\Common\Collections\Collection $idCollection, array $type, JMS\Serializer\Context $context ) : array
$visitor JMS\Serializer\JsonSerializationVisitor
$idCollection Doctrine\Common\Collections\Collection
$type array
$context JMS\Serializer\Context
return array

Property Details

$doctrine protected_oe property

protected ManagerRegistry,Symfony\Bridge\Doctrine $doctrine
return Symfony\Bridge\Doctrine\ManagerRegistry