Example #1
0
 /**
  * Config constructor.
  * @param \SimpleXMLElement $xml
  */
 public function __construct(\SimpleXMLElement $xml)
 {
     foreach ($xml->table as $tableConfig) {
         /** @var \SimpleXMLElement $tableConfig */
         $table = new Table($tableConfig);
         $this->tables[$table->getSelector()] = $table;
     }
 }