Completed
Pull Request — 3.3 (#155)
by Thibault
04:23
created
src/Mouf/Database/TDBM/TDBMObject.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,6 +238,9 @@  discard block
 block discarded – undo
238 238
 		}
239 239
 	}
240 240
 
241
+	/**
242
+	 * @param string $var
243
+	 */
241 244
 	public function __get($var) {
242 245
 		$this->_dbLoadIfNotLoaded();
243 246
 
@@ -290,6 +293,10 @@  discard block
 block discarded – undo
290 293
 		return isset($this->db_row[$var]);
291 294
 	}
292 295
 	
296
+	/**
297
+	 * @param string $var
298
+	 * @param string|null $value
299
+	 */
293 300
 	public function __set($var, $value) {
294 301
 		$this->_dbLoadIfNotLoaded();
295 302
 
@@ -642,7 +649,7 @@  discard block
 block discarded – undo
642 649
 	/**
643 650
 	 * Returns the tables used in the filter in an array.
644 651
 	 *
645
-	 * @return array<string>
652
+	 * @return string[]
646 653
 	 */
647 654
 	public function getUsedTables() {
648 655
 		return array($this->db_table_name);
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/TDBMObjectArrayCursorIterator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 	}
167 167
 	/**
168 168
 	 * Returns the current result's _id
169
-	 * @return string The current result's _id as a string.
169
+	 * @return integer The current result's _id as a string.
170 170
 	 */
171 171
 	public function key()
172 172
 	{
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/TDBMService.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -695,10 +695,10 @@  discard block
 block discarded – undo
695 695
 	
696 696
 	/**
697 697
 	 * Returns a generator for the database.
698
-	 * @param unknown $result
698
+	 * @param \PDOStatement $result
699 699
 	 * @param unknown $table_name
700
-	 * @param unknown $className
701
-	 * @param unknown $sql
700
+	 * @param string|null $className
701
+	 * @param string $sql
702 702
 	 */
703 703
 	private function getObjectsFromSQLGenerator($result, $table_name, $className, $sql) {
704 704
 		$keysStandardCased = array();
@@ -1084,7 +1084,7 @@  discard block
 block discarded – undo
1084 1084
 	 * @param unknown_type $target_tables
1085 1085
 	 * @param unknown_type $path
1086 1086
 	 * @param unknown_type $queue
1087
-	 * @return unknown
1087
+	 * @return boolean
1088 1088
 	 */
1089 1089
 	private function find_paths_iter(&$target_tables, &$path, &$queue) {
1090 1090
 		// Get table to look at:
@@ -1559,7 +1559,7 @@  discard block
 block discarded – undo
1559 1559
 	 * Takes in input a filter_bag (which can be about anything from a string to an array of TDBMObjects... see above from documentation),
1560 1560
 	 * and gives back a proper Filter object.
1561 1561
 	 *
1562
-	 * @param unknown_type $filter_bag
1562
+	 * @param unknown_type|null $filter_bag
1563 1563
 	 * @return FilterInterface
1564 1564
 	 */
1565 1565
 	public function buildFilterFromFilterBag($filter_bag) {
@@ -1624,7 +1624,7 @@  discard block
 block discarded – undo
1624 1624
 	 * Takes in input an order_bag (which can be about anything from a string to an array of OrderByColumn objects... see above from documentation),
1625 1625
 	 * and gives back an array of OrderByColumn / OrderBySQLString objects.
1626 1626
 	 *
1627
-	 * @param unknown_type $orderby_bag
1627
+	 * @param unknown_type|null $orderby_bag
1628 1628
 	 * @return array
1629 1629
 	 */
1630 1630
 	public function buildOrderArrayFromOrderBag($orderby_bag) {
Please login to merge, or discard this patch.
src/Mouf/Database/TDBM/Utils/TDBMDaoGenerator.php 1 patch
Doc Comments   +10 added lines, -6 removed lines patch added patch discarded remove patch
@@ -91,7 +91,9 @@  discard block
 block discarded – undo
91 91
 	/**
92 92
 	 * Generates in one method call the daos and the beans for one table.
93 93
 	 * 
94
-	 * @param $tableName
94
+	 * @param string $tableName
95
+	 * @param string $daonamespace
96
+	 * @param string $beannamespace
95 97
 	 */
96 98
 	public function generateDaoAndBean($tableName, $daonamespace, $beannamespace, ClassNameMapper $classNameMapper) {
97 99
 		$daoName = $this->getDaoNameFromTableName($tableName);
@@ -406,9 +408,10 @@  discard block
 block discarded – undo
406 408
 	/**
407 409
 	 * Writes the PHP bean DAO with simple functions to create/get/save objects.
408 410
 	 *
409
-	 * @param string $fileName The file that will be written (without the directory)
410 411
 	 * @param string $className The name of the class
411 412
 	 * @param string $tableName The name of the table
413
+	 * @param string $baseClassName
414
+	 * @param string $beanClassName
412 415
 	 */
413 416
 	public function generateDao($className, $baseClassName, $beanClassName, $tableName, ClassNameMapper $classNameMapper) {
414 417
 		$info = $this->dbConnection->getTableInfo($tableName);
@@ -696,7 +699,9 @@  discard block
 block discarded – undo
696 699
 	/**
697 700
 	 * Generates the factory bean.
698 701
 	 * 
699
-	 * @param $tableList
702
+	 * @param string[] $tableList
703
+	 * @param string $daoFactoryClassName
704
+	 * @param string $daoNamespace
700 705
 	 */
701 706
 	private function generateFactory($tableList, $daoFactoryClassName, $daoNamespace, ClassNameMapper $classNameMapper) {
702 707
 		// For each table, let's write a property.
@@ -768,7 +773,6 @@  discard block
 block discarded – undo
768 773
 	 * Transforms the property name in a setter name.
769 774
 	 * For instance, phone => getPhone or name => getName
770 775
 	 *
771
-	 * @param string $methodName
772 776
 	 * @return string
773 777
 	 */
774 778
 	public static function getSetterNameForPropertyName($propertyName) {
@@ -848,7 +852,7 @@  discard block
 block discarded – undo
848 852
 	 * Tries to put string to the singular form (if it is plural).
849 853
 	 * Obviously, this can't be perfect, be we do the best we can.
850 854
 	 * 
851
-	 * @param $str string
855
+	 * @param string $str string
852 856
 	 * @return string
853 857
 	 */
854 858
 	public static function toSingular($str) {
@@ -869,7 +873,7 @@  discard block
 block discarded – undo
869 873
 	 * Put the first letter of the string in lower case.
870 874
 	 * Very useful to transform a class name into a variable name.
871 875
 	 * 
872
-	 * @param $str string
876
+	 * @param string $str string
873 877
 	 * @return string
874 878
 	 */
875 879
 	public static function toVariableName($str) {
Please login to merge, or discard this patch.