Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions src/Handler/SubscribingHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,17 @@

namespace JMS\Serializer\Handler;

use JMS\Serializer\GraphNavigatorInterface;

interface SubscribingHandlerInterface
{
/**
* Return format:
*
* array(
* array(
* 'direction' => GraphNavigatorInterface::DIRECTION_SERIALIZATION,
* 'format' => 'json',
* 'type' => 'DateTime',
* 'method' => 'serializeDateTimeToJson',
* ),
* )
*
* The direction and method keys can be omitted.
*
* @return array
* @return iterable<array{
* type: string,
Comment thread
simPod marked this conversation as resolved.
* format: string,
* direction?: GraphNavigatorInterface::DIRECTION_*,
* method?: string,
* }>
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
*/
Expand Down
Loading