W3cubDocs

/CakePHP 3.4

Interface TypedResultInterface

Represents an expression that is known to return a specific type

Method Summary

  • returnType() public

    Sets the type of the value this object will generate. If called without arguments, returns the current known type

Method Detail

returnType()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

Parameters

string|null $type optional null
The name of the type that is to be returned

Returns

string|Cake\Database\TypedResultInterface
$this

© 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.TypedResultInterface.html