public function setProfilingLevel($level)
    {
        $result = $this->command(['profile' => $level]);

        return ($result['ok'] && isset($result['was'])) ? $result['was'] : 0;
    }
public function setProfilingLevel($level)
    {
        $result = $this->command(['profile' => $level]);

        return ($result['ok'] && isset($result['was'])) ? $result['was'] : 0;
    }
public function setProfilingLevel ( $ level ) { $ result = $ this -> command ( [ 'profile' => $ level ] ) ; return ( $ result [ 'ok' ] && isset ( $ result [ 'was' ] ) ) ? $ result [ 'was' ] : 0 ; }
Sets this database's profiling level

@link http://www.php.net/manual/en/mongodb.setprofilinglevel.php
@param int $level Profiling level.
@return int Returns the previous profiling level.
Sets this database s profiling level