Browse Source

Fix PhpDoc for yii\db\{QueryInterface,Query} (#18753)

tags/2.0.43
Anton 3 years ago committed by GitHub
parent
commit
d9928455e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      framework/db/QueryInterface.php

6
framework/db/QueryInterface.php

@ -42,15 +42,15 @@ interface QueryInterface
/**
* Returns the number of records.
* @param string $q the COUNT expression. Defaults to '*'.
* @param Connection $db the database connection used to execute the query.
* @param Connection|null $db the database connection used to execute the query.
* If this parameter is not given, the `db` application component will be used.
* @return int|string number of records.
* @return int|string|null number of records.
*/
public function count($q = '*', $db = null);
/**
* Returns a value indicating whether the query result contains any row of data.
* @param Connection $db the database connection used to execute the query.
* @param Connection|null $db the database connection used to execute the query.
* If this parameter is not given, the `db` application component will be used.
* @return bool whether the query result contains any row of data.
*/

Loading…
Cancel
Save