original_string: public function build($name = null)
      {
          $caching = new Caching();
          $caching->setStack(new DebugStack());
  
          if ($this->debug && isset($this->debugDriver)) {
              $caching->setDriver($this->resolveDriver($this->debugDriver));
  
              return $caching;
          }
  
          if (null === $name) {
              $name = $this->configuration->get('caching.default', 'null');
          }
  
          $driver = $this->resolveDriver($name);
          $caching->setDriver($driver);
  
          return $caching;
      }
code: public function build($name = null)
      {
          $caching = new Caching();
          $caching->setStack(new DebugStack());
  
          if ($this->debug && isset($this->debugDriver)) {
              $caching->setDriver($this->resolveDriver($this->debugDriver));
  
              return $caching;
          }
  
          if (null === $name) {
              $name = $this->configuration->get('caching.default', 'null');
          }
  
          $driver = $this->resolveDriver($name);
          $caching->setDriver($driver);
  
          return $caching;
      }
code_tokens: public function build ( $ name = null ) { $ caching = new Caching ( ) ; $ caching -> setStack ( new DebugStack ( ) ) ; if ( $ this -> debug && isset ( $ this -> debugDriver ) ) { $ caching -> setDriver ( $ this -> resolveDriver ( $ this -> debugDriver ) ) ; return $ caching ; } if ( null === $ name ) { $ name = $ this -> configuration -> get ( 'caching.default' , 'null' ) ; } $ driver = $ this -> resolveDriver ( $ name ) ; $ caching -> setDriver ( $ driver ) ; return $ caching ; }
docstring: Build cache driver.
  
  @param  string $name
  
  @return DriverInterface
docstring_tokens: Build cache driver .