Skip to content
Permalink
Browse files

Add return description

  • Loading branch information...
chinpei215 committed Mar 2, 2017
1 parent e180290 commit c5ad00547585c67dca10a20038a4a8a9f22f2a9e
@@ -593,10 +593,11 @@ public function nestedTransactionSupported() {
/**
* 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;
@@ -819,10 +819,11 @@ public function getSchemaName() {
/**
* 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) {
@@ -3141,7 +3141,7 @@ public function group($fields, Model $Model = null) {
* @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 @@ public function having($fields, $quoteValues = true, Model $Model = null) {
/**
* 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) {

0 comments on commit c5ad005

Please sign in to comment.
You can’t perform that action at this time.