瀏覽代碼

Merge pull request #67 from pylebecq/master

Added documentation for the @VirtualProperty annotation
Johannes 12 年之前
父節點
當前提交
8352df3e5a
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      doc/reference/annotations.rst

+ 8 - 0
doc/reference/annotations.rst

@@ -141,6 +141,14 @@ default the order is undefined, but you may change it to either "alphabetical",
         private $name;
     }
 
+@VirtualProperty
+~~~~~~~~~~~~~~~~
+This annotation can be defined on a method to indicate that the data returned by
+the method should appear like a property of the object.
+
+**Note**: This only works for serialization and is completely ignored during
+deserialization.
+
 @Inline
 ~~~~~~~~
 This annotation can be defined on a property to indicate that the data of the property