[TASK] Fix typehints in docblocks of Mapper
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 12 Apr 2013 21:32:15 +0000 (23:32 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Sat, 13 Apr 2013 17:52:58 +0000 (19:52 +0200)
Resolves: #47174
Releases: 6.0, 6.1
Change-Id: Ib29e83b59f6f97e19f3123700d8971e1ea2ea7e8
Reviewed-on: https://review.typo3.org/19928
Reviewed-by: Tymoteusz Motylewski
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/ColumnMap.php
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMap.php
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php

index 0624d46..3cc8b1d 100644 (file)
@@ -183,21 +183,21 @@ class ColumnMap {
        }
 
        /**
-        * @param $typeOfRelation
+        * @param string $typeOfRelation
         */
        public function setTypeOfRelation($typeOfRelation) {
                $this->typeOfRelation = $typeOfRelation;
        }
 
        /**
-        * @return int
+        * @return string
         */
        public function getTypeOfRelation() {
                return $this->typeOfRelation;
        }
 
        /**
-        * @param $propertyName
+        * @param string $propertyName
         */
        public function setPropertyName($propertyName) {
                $this->propertyName = $propertyName;
@@ -211,7 +211,7 @@ class ColumnMap {
        }
 
        /**
-        * @param $columnName
+        * @param string $columnName
         */
        public function setColumnName($columnName) {
                $this->columnName = $columnName;
@@ -225,7 +225,7 @@ class ColumnMap {
        }
 
        /**
-        * @param $childTableName
+        * @param string $childTableName
         */
        public function setChildTableName($childTableName) {
                $this->childTableName = $childTableName;
@@ -239,7 +239,7 @@ class ColumnMap {
        }
 
        /**
-        * @param $childTableWhereStatement
+        * @param string $childTableWhereStatement
         */
        public function setChildTableWhereStatement($childTableWhereStatement) {
                $this->childTableWhereStatement = $childTableWhereStatement;
@@ -253,7 +253,7 @@ class ColumnMap {
        }
 
        /**
-        * @param $childSortByFieldName
+        * @param string $childSortByFieldName
         */
        public function setChildSortByFieldName($childSortByFieldName) {
                $this->childSortByFieldName = $childSortByFieldName;
@@ -267,7 +267,7 @@ class ColumnMap {
        }
 
        /**
-        * @param $relationTableName
+        * @param string $relationTableName
         */
        public function setRelationTableName($relationTableName) {
                $this->relationTableName = $relationTableName;
@@ -281,7 +281,7 @@ class ColumnMap {
        }
 
        /**
-        * @param $relationTablePageIdColumnName
+        * @param string $relationTablePageIdColumnName
         */
        public function setRelationTablePageIdColumnName($relationTablePageIdColumnName) {
                $this->relationTablePageIdColumnName = $relationTablePageIdColumnName;
@@ -323,7 +323,7 @@ class ColumnMap {
        }
 
        /**
-        * @param $relationTableWhereStatement
+        * @param string $relationTableWhereStatement
         */
        public function setRelationTableWhereStatement($relationTableWhereStatement) {
                $this->relationTableWhereStatement = $relationTableWhereStatement;
@@ -337,7 +337,7 @@ class ColumnMap {
        }
 
        /**
-        * @param $parentKeyFieldName
+        * @param string $parentKeyFieldName
         */
        public function setParentKeyFieldName($parentKeyFieldName) {
                $this->parentKeyFieldName = $parentKeyFieldName;
@@ -351,7 +351,7 @@ class ColumnMap {
        }
 
        /**
-        * @param $parentTableFieldName
+        * @param string $parentTableFieldName
         */
        public function setParentTableFieldName($parentTableFieldName) {
                $this->parentTableFieldName = $parentTableFieldName;
@@ -365,7 +365,7 @@ class ColumnMap {
        }
 
        /**
-        * @param $childKeyFieldName
+        * @param string $childKeyFieldName
         */
        public function setChildKeyFieldName($childKeyFieldName) {
                $this->childKeyFieldName = $childKeyFieldName;
index 74274f1..c58d6fc 100644 (file)
@@ -154,7 +154,7 @@ class DataMap {
        /**
         * Sets the name of the class the colum map represents
         *
-        * @param $className
+        * @param string $className
         * @return void
         */
        public function setClassName($className) {
@@ -173,7 +173,7 @@ class DataMap {
        /**
         * Sets the name of the table the colum map represents
         *
-        * @param $tableName
+        * @param string $tableName
         * @return void
         */
        public function setTableName($tableName) {
index f969254..affeea1 100644 (file)
@@ -261,7 +261,7 @@ class DataMapFactory implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @param DataMap $dataMap
-        * @param $tableName
+        * @param string $tableName
         * @return DataMap
         */
        protected function addMetaDataColumnNames(\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMap $dataMap, $tableName) {
index 1e5d35b..e459313 100644 (file)
@@ -357,7 +357,7 @@ class DataMapper implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @param \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $parentObject
-        * @param $propertyName
+        * @param string $propertyName
         * @return array|NULL
         */
        protected function getEmptyRelationValue(\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $parentObject, $propertyName) {
@@ -454,7 +454,7 @@ class DataMapper implements \TYPO3\CMS\Core\SingletonInterface {
         * Returns the given result as property value of the specified property type.
         *
         * @param \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $parentObject
-        * @param $propertyName
+        * @param string $propertyName
         * @param mixed $result The result
         * @return mixed
         */