mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
44 lines
694 B
PHP
Executable file
44 lines
694 B
PHP
Executable file
<?php
|
|
|
|
namespace Illuminate\Database\Query;
|
|
|
|
class Expression
|
|
{
|
|
/**
|
|
* The value of the expression.
|
|
*
|
|
* @var mixed
|
|
*/
|
|
protected $value;
|
|
|
|
/**
|
|
* Create a new raw query expression.
|
|
*
|
|
* @param mixed $value
|
|
* @return void
|
|
*/
|
|
public function __construct($value)
|
|
{
|
|
$this->value = $value;
|
|
}
|
|
|
|
/**
|
|
* Get the value of the expression.
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function getValue()
|
|
{
|
|
return $this->value;
|
|
}
|
|
|
|
/**
|
|
* Get the value of the expression.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function __toString()
|
|
{
|
|
return (string) $this->getValue();
|
|
}
|
|
}
|