original_string: public function setEnabledLevels(array $levels)
      {
          $enabledLevels = array();
  
          foreach ($levels as $value) {
              if ($this->validLevel($value)) {
                  array_push($enabledLevels, $value);
              }
          }
  
          $this->_enabledLevels = $enabledLevels;
      }
code: public function setEnabledLevels(array $levels)
      {
          $enabledLevels = array();
  
          foreach ($levels as $value) {
              if ($this->validLevel($value)) {
                  array_push($enabledLevels, $value);
              }
          }
  
          $this->_enabledLevels = $enabledLevels;
      }
code_tokens: public function setEnabledLevels ( array $ levels ) { $ enabledLevels = array ( ) ; foreach ( $ levels as $ value ) { if ( $ this -> validLevel ( $ value ) ) { array_push ( $ enabledLevels , $ value ) ; } } $ this -> _enabledLevels = $ enabledLevels ; }
docstring: Sets enabled logging levels.
  
  @param array $levels
docstring_tokens: Sets enabled logging levels .