浏览代码

some docblock updates

gediminasm 14 年之前
父节点
当前提交
9ca57f3979

+ 2 - 4
lib/Gedmo/Mapping/Driver/Chain.php

@@ -45,16 +45,14 @@ class Chain implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::validateFullMetadata()
+     * {@inheritDoc}
      */
     public function validateFullMetadata(ClassMetadataInfo $meta, array $config)
     {
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::readExtendedMetadata()
+     * {@inheritDoc}
      */
     public function readExtendedMetadata(ClassMetadataInfo $meta, array &$config)
     {

+ 2 - 4
lib/Gedmo/Sluggable/Mapping/Driver/Annotation.php

@@ -42,8 +42,7 @@ class Annotation implements Driver
     );
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::validateFullMetadata()
+     * {@inheritDoc}
      */
     public function validateFullMetadata(ClassMetadataInfo $meta, array $config)
     {
@@ -53,8 +52,7 @@ class Annotation implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::readExtendedMetadata()
+     * {@inheritDoc}
      */
     public function readExtendedMetadata(ClassMetadataInfo $meta, array &$config) {
         require_once __DIR__ . '/../Annotations.php';

+ 3 - 6
lib/Gedmo/Sluggable/Mapping/Driver/Yaml.php

@@ -37,8 +37,7 @@ class Yaml extends File implements Driver
     );
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::validateFullMetadata()
+     * {@inheritDoc}
      */
     public function validateFullMetadata(ClassMetadataInfo $meta, array $config)
     {
@@ -48,8 +47,7 @@ class Yaml extends File implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::readExtendedMetadata()
+     * {@inheritDoc}
      */
     public function readExtendedMetadata(ClassMetadataInfo $meta, array &$config) {
         $yaml = $this->_loadMappingFile($this->_findMappingFile($meta->name));
@@ -91,8 +89,7 @@ class Yaml extends File implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping\Driver.File::_loadMappingFile()
+     * {@inheritDoc}
      */
     protected function _loadMappingFile($file)
     {

+ 1 - 4
lib/Gedmo/Sluggable/SluggableListener.php

@@ -40,10 +40,7 @@ class SluggableListener extends MappedEventSubscriber implements EventSubscriber
     }
     
     /**
-     * Get the namespace of extension event subscriber.
-     * used to load mapping drivers and cache
-     * 
-     * @return string
+     * {@inheritDoc}
      */
     protected function _getNamespace()
     {

+ 2 - 4
lib/Gedmo/Timestampable/Mapping/Driver/Annotation.php

@@ -38,8 +38,7 @@ class Annotation implements Driver
     );
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::validateFullMetadata()
+     * {@inheritDoc}
      */
     public function validateFullMetadata(ClassMetadataInfo $meta, array $config)
     {
@@ -47,8 +46,7 @@ class Annotation implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::readExtendedMetadata()
+     * {@inheritDoc}
      */
     public function readExtendedMetadata(ClassMetadataInfo $meta, array &$config) {
         require_once __DIR__ . '/../Annotations.php';

+ 3 - 6
lib/Gedmo/Timestampable/Mapping/Driver/Yaml.php

@@ -39,8 +39,7 @@ class Yaml extends File implements Driver
     );
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::validateFullMetadata()
+     * {@inheritDoc}
      */
     public function validateFullMetadata(ClassMetadataInfo $meta, array $config)
     {
@@ -48,8 +47,7 @@ class Yaml extends File implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::readExtendedMetadata()
+     * {@inheritDoc}
      */
     public function readExtendedMetadata(ClassMetadataInfo $meta, array &$config) {
         $yaml = $this->_loadMappingFile($this->_findMappingFile($meta->name));
@@ -83,8 +81,7 @@ class Yaml extends File implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping\Driver.File::_loadMappingFile()
+     * {@inheritDoc}
      */
     protected function _loadMappingFile($file)
     {

+ 1 - 4
lib/Gedmo/Timestampable/TimestampableListener.php

@@ -36,10 +36,7 @@ class TimestampableListener extends MappedEventSubscriber implements EventSubscr
     }
     
 	/**
-     * Get the namespace of extension event subscriber.
-     * used to load mapping drivers and cache
-     * 
-     * @return string
+     * {@inheritDoc}
      */
     protected function _getNamespace()
     {

+ 2 - 4
lib/Gedmo/Translatable/Mapping/Driver/Annotation.php

@@ -56,8 +56,7 @@ class Annotation implements Driver
     );
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::validateFullMetadata()
+     * {@inheritDoc}
      */
     public function validateFullMetadata(ClassMetadataInfo $meta, array $config)
     {
@@ -65,8 +64,7 @@ class Annotation implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::readExtendedMetadata()
+     * {@inheritDoc}
      */
     public function readExtendedMetadata(ClassMetadataInfo $meta, array &$config) {
         require_once __DIR__ . '/../Annotations.php';

+ 3 - 6
lib/Gedmo/Translatable/Mapping/Driver/Yaml.php

@@ -40,8 +40,7 @@ class Yaml extends File implements Driver
     );
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::validateFullMetadata()
+     * {@inheritDoc}
      */
     public function validateFullMetadata(ClassMetadataInfo $meta, array $config)
     {
@@ -49,8 +48,7 @@ class Yaml extends File implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::readExtendedMetadata()
+     * {@inheritDoc}
      */
     public function readExtendedMetadata(ClassMetadataInfo $meta, array &$config) {
         $yaml = $this->_loadMappingFile($this->_findMappingFile($meta->name));
@@ -87,8 +85,7 @@ class Yaml extends File implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping\Driver.File::_loadMappingFile()
+     * {@inheritDoc}
      */
     protected function _loadMappingFile($file)
     {

+ 1 - 4
lib/Gedmo/Translatable/TranslationListener.php

@@ -93,10 +93,7 @@ class TranslationListener extends MappedEventSubscriber implements EventSubscrib
     }
     
 	/**
-     * Get the namespace of extension event subscriber.
-     * used to load mapping drivers and cache
-     * 
-     * @return string
+     * {@inheritDoc}
      */
     protected function _getNamespace()
     {

+ 2 - 4
lib/Gedmo/Tree/Mapping/Driver/Annotation.php

@@ -53,8 +53,7 @@ class Annotation implements Driver
     );
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::validateFullMetadata()
+     * {@inheritDoc}
      */
     public function validateFullMetadata(ClassMetadataInfo $meta, array $config)
     {
@@ -76,8 +75,7 @@ class Annotation implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::readExtendedMetadata()
+     * {@inheritDoc}
      */
     public function readExtendedMetadata(ClassMetadataInfo $meta, array &$config) {
         require_once __DIR__ . '/../Annotations.php';

+ 3 - 6
lib/Gedmo/Tree/Mapping/Driver/Yaml.php

@@ -39,8 +39,7 @@ class Yaml extends File implements Driver
     );
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::validateFullMetadata()
+     * {@inheritDoc}
      */
     public function validateFullMetadata(ClassMetadataInfo $meta, array $config)
     {
@@ -62,8 +61,7 @@ class Yaml extends File implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping.Driver::readExtendedMetadata()
+     * {@inheritDoc}
      */
     public function readExtendedMetadata(ClassMetadataInfo $meta, array &$config) {
         $yaml = $this->_loadMappingFile($this->_findMappingFile($meta->name));
@@ -105,8 +103,7 @@ class Yaml extends File implements Driver
     }
     
     /**
-     * (non-PHPdoc)
-     * @see Gedmo\Mapping\Driver.File::_loadMappingFile()
+     * {@inheritDoc}
      */
     protected function _loadMappingFile($file)
     {

+ 1 - 4
lib/Gedmo/Tree/TreeListener.php

@@ -65,10 +65,7 @@ class TreeListener extends MappedEventSubscriber implements EventSubscriber
     }
     
 	/**
-     * Get the namespace of extension event subscriber.
-     * used to load mapping drivers and cache
-     * 
-     * @return string
+     * {@inheritDoc}
      */
     protected function _getNamespace()
     {

+ 3 - 3
tests/Gedmo/Tree/Fixture/Category.php

@@ -37,7 +37,7 @@ class Category implements Node
      * @gedmo:TreeParent
      * @ManyToOne(targetEntity="Category", inversedBy="children")
      */
-    private $parent;
+    private $parentId;
     
     /**
      * @gedmo:TreeLevel
@@ -72,11 +72,11 @@ class Category implements Node
     
     public function setParent(Category $parent)
     {
-        $this->parent = $parent;    
+        $this->parentId = $parent;    
     }
     
     public function getParent()
     {
-        return $this->parent;    
+        return $this->parentId;    
     }
 }