src/ConnectionString.php
public function setFetchMode($mode, $complement_info = null, array $ctor_args = array()) {
        $fetchMode = new FetchMode($mode, $complement_info, $ctor_args);
        $this->attributes[DB::ATTR_DEFAULT_FETCH_MODE] = serialize($fetchMode);
    }
public function setFetchMode($mode, $complement_info = null, array $ctor_args = array()) {
        $fetchMode = new FetchMode($mode, $complement_info, $ctor_args);
        $this->attributes[DB::ATTR_DEFAULT_FETCH_MODE] = serialize($fetchMode);
    }
public function setFetchMode ( $ mode , $ complement_info = null , array $ ctor_args = array ( ) ) { $ fetchMode = new FetchMode ( $ mode , $ complement_info , $ ctor_args ) ; $ this -> attributes [ DB :: ATTR_DEFAULT_FETCH_MODE ] = serialize ( $ fetchMode ) ; }
Sets default fetch mode
@param int $mode Fetch mode
@param mixed $complement_info For some fetch modes : additionnal information
@param array $ctor_args For DB::FETCH_CLASS : constructor argument list
@see FetchMode
Sets default fetch mode