/** * @param string $table * @throws DbalException */ public function __construct($table = '') { if (!$table) { throw new DbalException('TableModel table required'); } $this->table = $table; $this->model = new Model(); $this->db = $this->model->getDB(); }