Esempio n. 1
0
 /**
  * @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());
 }
Esempio n. 2
0
 /**
  * @param string|Parametrised $content
  * @param string              $alias
  */
 public function __construct($content, $alias = null)
 {
     parent::__construct($content);
     $this->alias = $alias;
 }
Esempio n. 3
0
 /**
  * @param string|SQL $column
  * @param string $direction
  */
 public function __construct($column, $direction = null)
 {
     parent::__construct($column);
     $this->direction = $direction;
 }
Esempio n. 4
0
 /**
  * @param string $column
  * @param mixed  $value
  */
 public function __construct($column, $value)
 {
     parent::__construct($column);
     $this->value = $value;
 }