W3cubDocs

/CakePHP 4.1

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.

Namespace: Cake\Database\Type

Method Summary

  • toExpression() public

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

Method Detail

toExpression() 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–present 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/4.1/interface-Cake.Database.Type.ExpressionTypeInterface.html