original_string: public function getValue(string $key)
      {
          $driver = $this->getDriver();
          $value = $driver->get($key);
          if ($this->hasEventListeners('itemGetValue')) {
              $this->dispatchEvent('itemGetValue', new \BearFramework\App\Cache\ItemGetValueEventDetails($key, $value));
          }
          if ($this->hasEventListeners('itemRequest')) {
              $this->dispatchEvent('itemRequest', new \BearFramework\App\Cache\ItemRequestEventDetails($key));
          }
          return $value;
      }
code: public function getValue(string $key)
      {
          $driver = $this->getDriver();
          $value = $driver->get($key);
          if ($this->hasEventListeners('itemGetValue')) {
              $this->dispatchEvent('itemGetValue', new \BearFramework\App\Cache\ItemGetValueEventDetails($key, $value));
          }
          if ($this->hasEventListeners('itemRequest')) {
              $this->dispatchEvent('itemRequest', new \BearFramework\App\Cache\ItemRequestEventDetails($key));
          }
          return $value;
      }
code_tokens: public function getValue ( string $ key ) { $ driver = $ this -> getDriver ( ) ; $ value = $ driver -> get ( $ key ) ; if ( $ this -> hasEventListeners ( 'itemGetValue' ) ) { $ this -> dispatchEvent ( 'itemGetValue' , new \ BearFramework \ App \ Cache \ ItemGetValueEventDetails ( $ key , $ value ) ) ; } if ( $ this -> hasEventListeners ( 'itemRequest' ) ) { $ this -> dispatchEvent ( 'itemRequest' , new \ BearFramework \ App \ Cache \ ItemRequestEventDetails ( $ key ) ) ; } return $ value ; }
docstring: Returns the value of the cache item specified.
  
  @param string $key The key of the cache item.
  @return mixed The value of the cache item or null if not found.
docstring_tokens: Returns the value of the cache item specified .