Skip to content

Commit 17f5af3

Browse files
committed
Optimize comments
1 parent 05cbc48 commit 17f5af3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Model.php

+11-11
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ public function filter($data)
462462
* Set table alias for next find()
463463
*
464464
* @param string Table alias name
465-
* @return self
465+
* @return $this
466466
*/
467467
public function setAlias($alias)
468468
{
@@ -478,7 +478,7 @@ public function setAlias($alias)
478478
* Create an existent CI Query Builder instance with Model features for query purpose.
479479
*
480480
* @param boolean $withAll withAll() switch helper
481-
* @return object CI_DB_query_builder
481+
* @return \CI_DB_query_builder CI_DB_query_builder
482482
* @example
483483
* $posts = $this->PostModel->find()
484484
* ->where('is_public', '1')
@@ -531,7 +531,7 @@ public function find($withAll=false)
531531
/**
532532
* Create an CI Query Builder instance without Model Filters for query purpose.
533533
*
534-
* @return object CI_DB_query_builder
534+
* @return \CI_DB_query_builder CI_DB_query_builder
535535
*/
536536
public function forceFind()
537537
{
@@ -624,7 +624,7 @@ public static function findAll($condition=[], $limit=null)
624624
/**
625625
* reset an CI Query Builder instance with Model.
626626
*
627-
* @return object Self
627+
* @return $this
628628
* @example
629629
* $this->Model->reset()->find();
630630
*/
@@ -999,7 +999,7 @@ public function sharedLock()
999999
/**
10001000
* Without SOFT_DELETED query conditions for next find()
10011001
*
1002-
* @return object Self
1002+
* @return $this
10031003
* @example
10041004
* $this->Model->withTrashed()->find();
10051005
*/
@@ -1013,7 +1013,7 @@ public function withTrashed()
10131013
/**
10141014
* Without Global Scopes query conditions for next find()
10151015
*
1016-
* @return object Self
1016+
* @return $this
10171017
* @example
10181018
* $this->Model->withoutGlobalScopes()->find();
10191019
*/
@@ -1028,7 +1028,7 @@ public function withoutGlobalScopes()
10281028
* Without all query conditions for next find()
10291029
* That is, with all set of Models for next find()
10301030
*
1031-
* @return object Self
1031+
* @return $this
10321032
* @example
10331033
* $this->Model->withAll()->find();
10341034
*/
@@ -1154,7 +1154,7 @@ public function afterSave($insert, $changedAttributes)
11541154
* @param string $modelName The model class name of the related record
11551155
* @param string $foreignKey
11561156
* @param string $localKey
1157-
* @return object CI_DB_query_builder
1157+
* @return \CI_DB_query_builder CI_DB_query_builder
11581158
*/
11591159
public function hasMany($modelName, $foreignKey=null, $localKey=null)
11601160
{
@@ -1167,7 +1167,7 @@ public function hasMany($modelName, $foreignKey=null, $localKey=null)
11671167
* @param string $modelName The model class name of the related record
11681168
* @param string $foreignKey
11691169
* @param string $localKey
1170-
* @return object CI_DB_query_builder
1170+
* @return \CI_DB_query_builder CI_DB_query_builder
11711171
*/
11721172
public function hasOne($modelName, $foreignKey=null, $localKey=null)
11731173
{
@@ -1181,7 +1181,7 @@ public function hasOne($modelName, $foreignKey=null, $localKey=null)
11811181
* @param string $relationship
11821182
* @param string $foreignKey
11831183
* @param string $localKey
1184-
* @return object CI_DB_query_builder
1184+
* @return \CI_DB_query_builder CI_DB_query_builder
11851185
*/
11861186
protected function _relationship($modelName, $relationship, $foreignKey=null, $localKey=null)
11871187
{
@@ -1435,7 +1435,7 @@ protected function _attrEventBeforeDelete(&$attributes)
14351435
* @param mixed Primary key value or a set of column values. If is null, it would be used for
14361436
* previous find() method, which means it would not rebuild find() so it would check and
14371437
* protect the SQL statement.
1438-
* @return object CI_DB_query_builder
1438+
* @return \CI_DB_query_builder CI_DB_query_builder
14391439
* @internal
14401440
* @example
14411441
* // find a single customer whose primary key value is 10

0 commit comments

Comments
 (0)