original_string: protected function setKey($key)
      {
          // If a handler switches key, we need to decrement the counter for the old
          // key, and increment the counter for the new key.
          $this->removeKey();
  
          // Set the new key, and increment the counter appropriately.
          $this->key = $key;
          if (isset($key)) {
              static::$keys[$key] = isset(static::$keys[$key]) ? static::$keys[$key] + 1 : 1;
          }
      }
code: protected function setKey($key)
      {
          // If a handler switches key, we need to decrement the counter for the old
          // key, and increment the counter for the new key.
          $this->removeKey();
  
          // Set the new key, and increment the counter appropriately.
          $this->key = $key;
          if (isset($key)) {
              static::$keys[$key] = isset(static::$keys[$key]) ? static::$keys[$key] + 1 : 1;
          }
      }
code_tokens: protected function setKey ( $ key ) { // If a handler switches key, we need to decrement the counter for the old // key, and increment the counter for the new key. $ this -> removeKey ( ) ; // Set the new key, and increment the counter appropriately. $ this -> key = $ key ; if ( isset ( $ key ) ) { static :: $ keys [ $ key ] = isset ( static :: $ keys [ $ key ] ) ? static :: $ keys [ $ key ] + 1 : 1 ; } }
docstring: Set key for final nested destructor.
  
  @param string $key
  Name of key.
docstring_tokens: Set key for final nested destructor .