Przeglądaj źródła

updated to latest doctrine changes

Johannes Schmitt 14 lat temu
rodzic
commit
2e6c6a3a87

+ 2 - 1
Annotation/Exclude.php

@@ -18,6 +18,7 @@
 
 namespace JMS\SerializerBundle\Annotation;
 
-class Exclude
+/** @Annotation */
+final class Exclude
 {
 }

+ 2 - 1
Annotation/ExclusionPolicy.php

@@ -20,7 +20,8 @@ namespace JMS\SerializerBundle\Annotation;
 
 use JMS\SerializerBundle\Exception\RuntimeException;
 
-class ExclusionPolicy
+/** @Annotation */
+final class ExclusionPolicy
 {
     public $policy;
 

+ 2 - 1
Annotation/Expose.php

@@ -18,6 +18,7 @@
 
 namespace JMS\SerializerBundle\Annotation;
 
-class Expose
+/** @Annotation */
+final class Expose
 {
 }

+ 2 - 1
Annotation/PostDeserialize.php

@@ -8,8 +8,9 @@ namespace JMS\SerializerBundle\Annotation;
  *
  * These methods do not necessarily have to be public.
  *
+ * @Annotation
  * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  */
-class PostDeserialize
+final class PostDeserialize
 {
 }

+ 2 - 1
Annotation/PreSerialize.php

@@ -9,8 +9,9 @@ namespace JMS\SerializerBundle\Annotation;
  * These methods do not need to be public, and should do any clean-up, or
  * preparation of the object that is necessary.
  *
+ * @Annotation
  * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  */
-class PreSerialize
+final class PreSerialize
 {
 }

+ 2 - 1
Annotation/SerializedName.php

@@ -20,7 +20,8 @@ namespace JMS\SerializerBundle\Annotation;
 
 use JMS\SerializerBundle\Exception\RuntimeException;
 
-class SerializedName
+/** @Annotation */
+final class SerializedName
 {
     public $name;
 

+ 2 - 1
Annotation/Since.php

@@ -18,6 +18,7 @@
 
 namespace JMS\SerializerBundle\Annotation;
 
-class Since extends Version
+/** @Annotation */
+final class Since extends Version
 {
 }

+ 2 - 1
Annotation/Type.php

@@ -20,7 +20,8 @@ namespace JMS\SerializerBundle\Annotation;
 
 use JMS\SerializerBundle\Exception\RuntimeException;
 
-class Type
+/** @Annotation */
+final class Type
 {
     public $name;
 

+ 2 - 1
Annotation/Until.php

@@ -18,6 +18,7 @@
 
 namespace JMS\SerializerBundle\Annotation;
 
-class Until extends Version
+/** @Annotation */
+final class Until extends Version
 {
 }

+ 1 - 1
Annotation/Version.php

@@ -20,7 +20,7 @@ namespace JMS\SerializerBundle\Annotation;
 
 use JMS\SerializerBundle\Exception\RuntimeException;
 
-class Version
+abstract class Version
 {
     public $version;