@@ -27,8 +27,7 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * Returns the foreignkey the column is part of, if any. null otherwise. |
| 29 | 29 | * |
| 30 | - * @param Column $column |
|
| 31 | - * @return ForeignKeyConstraint|null |
|
| 30 | + * @return boolean |
|
| 32 | 31 | */ |
| 33 | 32 | public function getForeignKey() { |
| 34 | 33 | return false; |
@@ -66,6 +66,13 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | private $mode; |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string $magicSql |
|
| 71 | + * @param string $magicSqlCount |
|
| 72 | + * @param WeakrefObjectStorage $objectStorage |
|
| 73 | + * @param string|null $className |
|
| 74 | + * @param integer $mode |
|
| 75 | + */ |
|
| 69 | 76 | public function __construct($magicSql, $magicSqlCount, array $parameters, array $columnDescriptors, $objectStorage, $className, TDBMService $tdbmService, MagicQuery $magicQuery, $mode) |
| 70 | 77 | { |
| 71 | 78 | $this->magicSql = $magicSql; |
@@ -147,6 +154,7 @@ discard block |
||
| 147 | 154 | |
| 148 | 155 | /** |
| 149 | 156 | * @param int $offset |
| 157 | + * @param integer $limit |
|
| 150 | 158 | * |
| 151 | 159 | * @return PageIterator |
| 152 | 160 | */ |
@@ -777,7 +777,7 @@ discard block |
||
| 777 | 777 | * This is used internally by TDBM to add an object to the list of objects that have been |
| 778 | 778 | * created/updated but not saved yet. |
| 779 | 779 | * |
| 780 | - * @param AbstractTDBMObject $myObject |
|
| 780 | + * @param DbRow $myObject |
|
| 781 | 781 | */ |
| 782 | 782 | public function _addToToSaveObjectList(DbRow $myObject) |
| 783 | 783 | { |
@@ -1441,7 +1441,7 @@ discard block |
||
| 1441 | 1441 | } |
| 1442 | 1442 | |
| 1443 | 1443 | /** |
| 1444 | - * @param $table |
|
| 1444 | + * @param string $table |
|
| 1445 | 1445 | * @param array $primaryKeys |
| 1446 | 1446 | * @param array $additionalTablesFetch |
| 1447 | 1447 | * @param bool $lazy Whether to perform lazy loading on this object or not. |
@@ -1616,7 +1616,7 @@ discard block |
||
| 1616 | 1616 | * @param $pivotTableName |
| 1617 | 1617 | * @param AbstractTDBMObject $bean |
| 1618 | 1618 | * |
| 1619 | - * @return AbstractTDBMObject[] |
|
| 1619 | + * @return ResultIterator |
|
| 1620 | 1620 | */ |
| 1621 | 1621 | public function _getRelatedBeans($pivotTableName, AbstractTDBMObject $bean) |
| 1622 | 1622 | { |
@@ -43,7 +43,6 @@ discard block |
||
| 43 | 43 | /** |
| 44 | 44 | * Constructor. |
| 45 | 45 | * |
| 46 | - * @param Connection $dbConnection The connection to the database. |
|
| 47 | 46 | */ |
| 48 | 47 | public function __construct(SchemaAnalyzer $schemaAnalyzer, Schema $schema, TDBMSchemaAnalyzer $tdbmSchemaAnalyzer) |
| 49 | 48 | { |
@@ -100,6 +99,9 @@ discard block |
||
| 100 | 99 | * Generates in one method call the daos and the beans for one table. |
| 101 | 100 | * |
| 102 | 101 | * @param $tableName |
| 102 | + * @param string $daonamespace |
|
| 103 | + * @param string $beannamespace |
|
| 104 | + * @param boolean $storeInUtc |
|
| 103 | 105 | */ |
| 104 | 106 | public function generateDaoAndBean(Table $table, $daonamespace, $beannamespace, ClassNameMapper $classNameMapper, $storeInUtc) |
| 105 | 107 | { |
@@ -140,7 +142,7 @@ discard block |
||
| 140 | 142 | /** |
| 141 | 143 | * Returns the name of the base bean class from the table name. |
| 142 | 144 | * |
| 143 | - * @param $tableName |
|
| 145 | + * @param string $tableName |
|
| 144 | 146 | * |
| 145 | 147 | * @return string |
| 146 | 148 | */ |
@@ -152,7 +154,7 @@ discard block |
||
| 152 | 154 | /** |
| 153 | 155 | * Returns the name of the base DAO class from the table name. |
| 154 | 156 | * |
| 155 | - * @param $tableName |
|
| 157 | + * @param string $tableName |
|
| 156 | 158 | * |
| 157 | 159 | * @return string |
| 158 | 160 | */ |
@@ -223,9 +225,10 @@ discard block |
||
| 223 | 225 | /** |
| 224 | 226 | * Writes the PHP bean DAO with simple functions to create/get/save objects. |
| 225 | 227 | * |
| 226 | - * @param string $fileName The file that will be written (without the directory) |
|
| 227 | 228 | * @param string $className The name of the class |
| 228 | - * @param string $tableName The name of the table |
|
| 229 | + * @param string $table The name of the table |
|
| 230 | + * @param string $baseClassName |
|
| 231 | + * @param string $beanClassName |
|
| 229 | 232 | */ |
| 230 | 233 | public function generateDao($className, $baseClassName, $beanClassName, Table $table, $daonamespace, $beannamespace, ClassNameMapper $classNameMapper) |
| 231 | 234 | { |
@@ -468,6 +471,8 @@ discard block |
||
| 468 | 471 | * Generates the factory bean. |
| 469 | 472 | * |
| 470 | 473 | * @param Table[] $tableList |
| 474 | + * @param string $daoFactoryClassName |
|
| 475 | + * @param string $daoNamespace |
|
| 471 | 476 | */ |
| 472 | 477 | private function generateFactory(array $tableList, $daoFactoryClassName, $daoNamespace, ClassNameMapper $classNameMapper) |
| 473 | 478 | { |
@@ -181,6 +181,9 @@ |
||
| 181 | 181 | |
| 182 | 182 | protected $errorMsg; |
| 183 | 183 | |
| 184 | + /** |
|
| 185 | + * @param string $msg |
|
| 186 | + */ |
|
| 184 | 187 | private function displayErrorMsg($msg) |
| 185 | 188 | { |
| 186 | 189 | $this->errorMsg = $msg; |