Expression.php
TLDR
The Expression
interface defines a method getValue
which retrieves the value of the expression.
Methods
getValue
This method returns the value of the expression. It takes a Grammar
object as a parameter and returns a string, integer, or float.
Classes
<?php
namespace Illuminate\Contracts\Database\Query;
use Illuminate\Database\Grammar;
interface Expression
{
/**
* Get the value of the expression.
*
* @param \Illuminate\Database\Grammar $grammar
* @return string|int|float
*/
public function getValue(Grammar $grammar);
}