original_string: public function getBrand($idSite, $period, $date, $segment = false)
      {
          $dataTable = $this->getDataTable('DevicesDetection_brands', $idSite, $period, $date, $segment);
          $dataTable->filter('GroupBy', array('label', __NAMESPACE__ . '\getDeviceBrandLabel'));
          $dataTable->filter('ColumnCallbackAddMetadata', array('label', 'logo', __NAMESPACE__ . '\getBrandLogo'));
          $dataTable->filter('AddSegmentByLabel', array('deviceBrand'));
          return $dataTable;
      }
code: public function getBrand($idSite, $period, $date, $segment = false)
      {
          $dataTable = $this->getDataTable('DevicesDetection_brands', $idSite, $period, $date, $segment);
          $dataTable->filter('GroupBy', array('label', __NAMESPACE__ . '\getDeviceBrandLabel'));
          $dataTable->filter('ColumnCallbackAddMetadata', array('label', 'logo', __NAMESPACE__ . '\getBrandLogo'));
          $dataTable->filter('AddSegmentByLabel', array('deviceBrand'));
          return $dataTable;
      }
code_tokens: public function getBrand ( $ idSite , $ period , $ date , $ segment = false ) { $ dataTable = $ this -> getDataTable ( 'DevicesDetection_brands' , $ idSite , $ period , $ date , $ segment ) ; $ dataTable -> filter ( 'GroupBy' , array ( 'label' , __NAMESPACE__ . '\getDeviceBrandLabel' ) ) ; $ dataTable -> filter ( 'ColumnCallbackAddMetadata' , array ( 'label' , 'logo' , __NAMESPACE__ . '\getBrandLogo' ) ) ; $ dataTable -> filter ( 'AddSegmentByLabel' , array ( 'deviceBrand' ) ) ; return $ dataTable ; }
docstring: Gets datatable displaying number of visits by device manufacturer name
  @param int $idSite
  @param string $period
  @param string $date
  @param bool|string $segment
  @return DataTable
docstring_tokens: Gets datatable displaying number of visits by device manufacturer name