getSerializationContext() защищенный Метод

Creates serialization context. Can be used to add own groups.
protected getSerializationContext ( ) : JMS\Serializer\SerializationContext
Результат JMS\Serializer\SerializationContext
Пример #1
0
 /**
  * {@inheritdoc}
  */
 protected function getSerializationContext()
 {
     return parent::getSerializationContext()->setGroups(['fullAccount', 'partialContact']);
 }