for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Recca0120\Repository;
use Illuminate\Database\Query\Expression as QueryExpression;
class Expression extends QueryExpression
{
/**
* The value of the expression.
*
* @var mixed
*/
protected $value;
* Create a new raw query expression.
* @param mixed $value
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($value)
$this->value = $value;
}
* Get the value of the expression.
* @return string
public function __toString()
return (string) $this->getValue();
* @return mixed
public function getValue()
return $this->value;
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.