W3cubDocs

/CakePHP 3.4

Interface ExpressionTypeInterface

An interface used by Type objects to signal whether the value should be converted to an ExpressionInterface instead of a string when sent to the database.

Method Summary

  • Returns an ExpressionInterface object for the given value that can be used in queries.

Method Detail

toExpression()source public

toExpression( mixed $value )

Returns an ExpressionInterface object for the given value that can be used in queries.

Parameters

mixed $value
The value to be converted to an expression

Returns

Cake\Database\ExpressionInterface

© 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.Type.ExpressionTypeInterface.html