Skip to content

Commit

Permalink
Merge pull request #115 from adrienbrault/handler-doc
Browse files Browse the repository at this point in the history
Document the SubscribingHandlerInterface a bit
  • Loading branch information
schmittjoh committed Jul 8, 2013
2 parents 6c0dfb8 + 568e661 commit 30422b6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/JMS/Serializer/Handler/SubscribingHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@
interface SubscribingHandlerInterface
{
/**
* Return format:
*
* array(
* array(
* 'direction' => GraphNavigator::DIRECTION_SERIALIZATION,
* 'format' => 'json',
* 'type' => 'DateTime',
* 'method' => 'serializeDateTimeToJson',
* ),
* )
*
* The direction and method keys can be omitted.
*
* @return array
*/
public static function getSubscribingMethods();
Expand Down

0 comments on commit 30422b6

Please sign in to comment.