\Cake\DatabaseTypedResultInterface

Represents an expression that is known to return a specific type

Summary

Methods
Constants
returnType()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

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