public static function build($component, array $options = array()) { if (is_array($component)) { return implode(', ', $component); } else { return $component->expr . ' ' . $component->type; } }
public function testBuild() { $this->assertEquals(OrderKeyword::build(array(new OrderKeyword(new Expression('a'), 'ASC'), new OrderKeyword(new Expression('b'), 'DESC'))), 'a ASC, b DESC'); }