public function setTitles($titles)
    {
        $titles = is_array($titles) ? $titles : func_get_args();

        if (count($titles) > 0) {
            $this->titles = '"'.implode('", "',$titles).'"';
        }
    }
public function setTitles($titles)
    {
        $titles = is_array($titles) ? $titles : func_get_args();

        if (count($titles) > 0) {
            $this->titles = '"'.implode('", "',$titles).'"';
        }
    }
public function setTitles ( $ titles ) { $ titles = is_array ( $ titles ) ? $ titles : func_get_args ( ) ; if ( count ( $ titles ) > 0 ) { $ this -> titles = '"' . implode ( '", "' , $ titles ) . '"' ; } }
Set the titles for the csv
@param mixed $titles
Set the titles for the csv