public static function build($component, array $options = array()) { return trim($component->table . ' (' . implode(', ', Context::escape($component->columns)) . ') ' . $component->options); }
public function testBuild() { $component = new Reference('tbl', array('id')); $this->assertEquals('`tbl` (`id`)', Reference::build($component)); }