Add return description

This commit is contained in:
chinpei215 2017-03-02 20:34:28 +09:00
parent e18029064c
commit c5ad005475
3 changed files with 9 additions and 6 deletions

View file

@ -593,10 +593,11 @@ class Sqlite extends DboSource {
/**
* Returns a locking hint for the given mode.
*
* Sqlite Datasource doesn't support row-level locking.
*
* @param mixed $mode Lock mode
* @return string|null
* @return string|null Null
*/
public function getLockingHint($mode) {
return null;

View file

@ -819,10 +819,11 @@ class Sqlserver extends DboSource {
/**
* Returns a locking hint for the given mode.
* Currently, this method only returns WITH (UPDLOCK) when the mode is true.
*
* Currently, this method only returns WITH (UPDLOCK) when the mode is set to true.
*
* @param mixed $mode Lock mode
* @return string|null
* @return string|null WITH (UPDLOCK) clause or null
*/
public function getLockingHint($mode) {
if ($mode !== true) {

View file

@ -3141,7 +3141,7 @@ class DboSource extends DataSource {
* @param mixed $fields Array or string of conditions
* @param bool $quoteValues If true, values should be quoted
* @param Model $Model A reference to the Model instance making the query
* @return string|null
* @return string|null HAVING clause or null
*/
public function having($fields, $quoteValues = true, Model $Model = null) {
if (!$fields) {
@ -3152,10 +3152,11 @@ class DboSource extends DataSource {
/**
* Returns a locking hint for the given mode.
* Currently, this method only returns FOR UPDATE when the mode is true.
*
* Currently, this method only returns FOR UPDATE when the mode is set to true.
*
* @param mixed $mode Lock mode
* @return string|null
* @return string|null FOR UPDATE clause or null
*/
public function getLockingHint($mode) {
if ($mode !== true) {