소스 검색

made serialize/deserialize/encode/decode final

Lukas Kahwe Smith 14 년 전
부모
커밋
7ecd5e7590
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  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');