Преглед на файлове

Update annotations.rst

I had some issues with the annotation because I wasn't aware that you could set both setter and getter in one annotation line.  Updating to include the setter and getter in one annotation line.
Chris Johnson преди 11 години
родител
ревизия
5bcd6af8e1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      doc/reference/annotations.rst

+ 1 - 1
doc/reference/annotations.rst

@@ -99,7 +99,7 @@ be called to retrieve, or set the value of the given property:
     {
         private $id;
 
-        /** @Accessor(getter="getTrimmedName") */
+        /** @Accessor(getter="getTrimmedName",setter="setName") */
         private $name;
 
         // ...