mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-03-01 15:21:02 +03:00
31 lines
910 B
PHP
31 lines
910 B
PHP
<?php
|
|
/**
|
|
* Zend Framework (http://framework.zend.com/)
|
|
*
|
|
* @link http://github.com/zendframework/zf2 for the canonical source repository
|
|
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
|
|
* @license http://framework.zend.com/license/new-bsd New BSD License
|
|
*/
|
|
|
|
namespace Zend\Db\Sql\Predicate;
|
|
|
|
use Zend\Db\Sql\Expression as BaseExpression;
|
|
|
|
class Expression extends BaseExpression implements PredicateInterface
|
|
{
|
|
/**
|
|
* Constructor
|
|
*
|
|
* @param string $expression
|
|
* @param int|float|bool|string|array $valueParameter
|
|
*/
|
|
public function __construct($expression = null, $valueParameter = null /*[, $valueParameter, ... ]*/)
|
|
{
|
|
if ($expression) {
|
|
$this->setExpression($expression);
|
|
}
|
|
|
|
$this->setParameters(is_array($valueParameter) ? $valueParameter : array_slice(func_get_args(), 1));
|
|
}
|
|
}
|