Trait TypedResultTrait
Implements the TypedResultInterface
Direct Users
Properties summary
-
$_returnType
protectedThe type name this expression will return when executedstring
Method Summary
- getReturnType() publicGets the type of the value this object will generate.
- returnType() public
Sets the type of the value this object will generate. If called without arguments, returns the current known type
- setReturnType() publicSets the type of the value this object will generate.
Method Detail
getReturnType()source public
getReturnType( )
Gets the type of the value this object will generate.
Returns
stringreturnType()source public
returnType( string|null $type null )
Sets the type of the value this object will generate. If called without arguments, returns the current known type
Deprecated
3.5.0 Use getReturnType()/setReturnType() instead.Parameters
- string|null
$type
optional null - The name of the type that is to be returned
Returns
string|Cake\Database\TypedResultTrait
$this
setReturnType()source public
setReturnType( string $type )
Sets the type of the value this object will generate.
Parameters
- string
$type
- The name of the type that is to be returned
Returns
$this
Properties detail
$_returnTypesource
protected string
The type name this expression will return when executed
'string'
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.Database.TypedResultTrait.html