Ejemplo n.º 1
0
 /**
  * @return Table
  */
 public function build()
 {
     (new Mapper\Map($this->map))->sort();
     $table = new Table();
     $table->addClass('map');
     $table->body = $this->buildBody();
     return $table;
 }
Ejemplo n.º 2
0
 /**
  * @return Table
  */
 public function build()
 {
     (new Mapper\Collection($this->collection))->sort();
     $table = new Table();
     $table->addClass('collection');
     $table->head = $this->buildHead();
     $table->body = $this->buildBody();
     return $table;
 }