Explorar o código

Added documentation for the @VirtualProperty annotation.

Pierre-Yves LEBECQ %!s(int64=12) %!d(string=hai) anos
pai
achega
7cb631a043
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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