瀏覽代碼

Merge pull request #115 from adrienbrault/handler-doc

Document the SubscribingHandlerInterface a bit
Johannes 12 年之前
父節點
當前提交
30422b6296
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      src/JMS/Serializer/Handler/SubscribingHandlerInterface.php

+ 13 - 0
src/JMS/Serializer/Handler/SubscribingHandlerInterface.php

@@ -21,6 +21,19 @@ namespace JMS\Serializer\Handler;
 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();