Ver código fonte

made serialize/deserialize/encode/decode final

Lukas Kahwe Smith 14 anos atrás
pai
commit
7ecd5e7590
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5 5
      src/Symfony/Component/Serializer/Serializer.php

+ 5 - 5
src/Symfony/Component/Serializer/Serializer.php

@@ -73,9 +73,9 @@ class Serializer implements SerializerInterface
     }
 
     /**
-     * {@inheritDoc}
+     * {@inheritdoc}
      */
-    public function deserialize($data, $type, $format) {
+    public final function deserialize($data, $type, $format) {
         return $this->denormalize($this->decode($data, $format), $type, $format);
     }
 
@@ -109,7 +109,7 @@ class Serializer implements SerializerInterface
     }
 
     /**
-     * {@inheritDoc}
+     * {@inheritdoc}
      */
     public function denormalize($data, $type, $format = null)
     {
@@ -119,7 +119,7 @@ class Serializer implements SerializerInterface
     /**
      * {@inheritdoc}
      */
-    public function encode($data, $format)
+    public final function encode($data, $format)
     {
         if (!isset($this->encoders[$format])) {
             throw new \UnexpectedValueException('No encoder registered for the '.$format.' format');
@@ -131,7 +131,7 @@ class Serializer implements SerializerInterface
     /**
      * {@inheritdoc}
      */
-    public function decode($data, $format)
+    public final function decode($data, $format)
     {
         if (!isset($this->encoders[$format])) {
             throw new \UnexpectedValueException('No decoder registered for the '.$format.' format');