add() публичный Метод

This method will add the given ColumnConfiguration to the composer.
public add ( OpenSkill\Datatable\Columns\ColumnConfiguration $configuration )
$configuration OpenSkill\Datatable\Columns\ColumnConfiguration the configuration to add to the composer
 /**
  * Will test if the composer functions correct when the configure method is called
  */
 public function testConfigureColumn()
 {
     $name = "fooBar";
     $config = ColumnConfigurationBuilder::create()->name($name)->build();
     $this->composer->add($config);
     // get configuration and verify
     $numberOfColumns = count($this->composer->getColumnConfiguration());
     $this->assertSame($numberOfColumns, 1, "There should only be one column configuration");
     /**
      * @var ColumnConfiguration
      */
     $cc = $this->composer->getColumnConfiguration()[0];
     $func = $cc->getCallable();
     $this->assertTrue($cc->getSearch()->isSearchable(), "The column should not be searchable");
     $this->assertTrue($cc->getOrder()->isOrderable(), "The column should be orderable");
     $this->assertSame($name, $cc->getName(), "The name should be set to 'fooBar'");
     $this->assertSame("bar", $func(["fooBar" => "bar"]));
 }