\Cake\DatabaseTypedResultTrait

Implements the TypedResultInterface

Summary

Methods
Properties
Constants
getReturnType()
setReturnType()
returnType()
No public properties found
No constants found
No protected methods found
$_returnType
N/A
No private methods found
No private properties found
N/A

Properties

$_returnType

$_returnType : string

The type name this expression will return when executed

Type

string

Methods

getReturnType()

getReturnType() : string

Gets the type of the value this object will generate.

Returns

string

setReturnType()

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

returnType()

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

The name of the type that is to be returned

Returns

string|$this