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