public function setTable($table)
    {
        if (!is_array($table)
            && !($table instanceof DataTableInterface)
        ) {
            throw new Exception("DataTable renderers renderer accepts only DataTable, Simple and Map instances, and arrays.");
        }
        $this->table = $table;
    }
public function setTable($table)
    {
        if (!is_array($table)
            && !($table instanceof DataTableInterface)
        ) {
            throw new Exception("DataTable renderers renderer accepts only DataTable, Simple and Map instances, and arrays.");
        }
        $this->table = $table;
    }
public function setTable ( $ table ) { if ( ! is_array ( $ table ) && ! ( $ table instanceof DataTableInterface ) ) { throw new Exception ( "DataTable renderers renderer accepts only DataTable, Simple and Map instances, and arrays." ) ; } $ this -> table = $ table ; }
Set the DataTable to be rendered

@param DataTable|Simple|DataTable\Map $table table to be rendered
@throws Exception
Set the DataTable to be rendered