Since: 1.0
Author: Bernhard Schussek (bschussek@gmail.com)
Inheritance: extends Selector
Beispiel #1
0
 public function testToString()
 {
     $expr1 = new Method('getName', array(42, true), new GreaterThan(10));
     $expr2 = new Method('getName', array('foo'), new EndsWith('.css'));
     $expr3 = new Method('getName', array(new stdClass()), new AndX(array(new GreaterThan(10), new EndsWith('.css'))));
     $this->assertSame('getName(42, true)>10', $expr1->toString());
     $this->assertSame('getName("foo").endsWith(".css")', $expr2->toString());
     $this->assertSame('getName(object){>10 && endsWith(".css")}', $expr3->toString());
 }
 public function __construct()
 {
     parent::__construct('getBookings', array(), Expr::count(Expr::greaterThan(0)));
 }
Beispiel #3
0
 public function __construct()
 {
     parent::__construct('isPremium', array(), Expr::same(true));
 }