Trait TypedResultTrait
Implements the TypedResultInterface
Namespace: Cake\Database
Property Summary
-
$_returnType protected
stringThe type name this expression will return when executed
Method Summary
-
getReturnType() public
Gets the type of the value this object will generate.
-
returnType() public deprecated
Sets the type of the value this object will generate. If called without arguments, returns the current known type
-
setReturnType() public
Sets the type of the value this object will generate.
Method Detail
getReturnType() ¶ public
getReturnType(): string
Gets the type of the value this object will generate.
Returns
stringreturnType() ¶ public
returnType(string|null $type = null): string|$this
Sets the type of the value this object will generate. If called without arguments, returns the current known type
Parameters
-
string|null$type optional The name of the type that is to be returned
Returns
string|$thissetReturnType() ¶ public
setReturnType(string $type): $this
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