/** * @covers ::__construct * @covers ::getContent * @covers ::getParameters * @covers ::__toString */ public function testConstructAndGetters() { $params = array('param1', 'param2'); $sql = new SQL\SQL('SQL STRING', $params); $this->assertEquals('SQL STRING', $sql->getContent()); $this->assertEquals($params, $sql->getParameters()); $this->assertEquals('SQL STRING', $sql->__toString()); }
/** * @param string|Parametrised $content * @param string $alias */ public function __construct($content, $alias = null) { parent::__construct($content); $this->alias = $alias; }
/** * @param string|SQL $column * @param string $direction */ public function __construct($column, $direction = null) { parent::__construct($column); $this->direction = $direction; }
/** * @param string $column * @param mixed $value */ public function __construct($column, $value) { parent::__construct($column); $this->value = $value; }