original_string: protected function cloneVar($var)
      {
          if ($var instanceof Data) {
              return $var;
          }
          if (null === $this->cloner) {
              if (!class_exists(CutStub::class)) {
                  throw new \LogicException(sprintf('The VarDumper component is needed for the %s() method. Install symfony/var-dumper version 3.4 or above.', __METHOD__));
              }
              $this->cloner = new VarCloner();
              $this->cloner->setMaxItems(-1);
              $this->cloner->addCasters($this->getCasters());
          }
  
          return $this->cloner->cloneVar($var);
      }
code: protected function cloneVar($var)
      {
          if ($var instanceof Data) {
              return $var;
          }
          if (null === $this->cloner) {
              if (!class_exists(CutStub::class)) {
                  throw new \LogicException(sprintf('The VarDumper component is needed for the %s() method. Install symfony/var-dumper version 3.4 or above.', __METHOD__));
              }
              $this->cloner = new VarCloner();
              $this->cloner->setMaxItems(-1);
              $this->cloner->addCasters($this->getCasters());
          }
  
          return $this->cloner->cloneVar($var);
      }
code_tokens: protected function cloneVar ( $ var ) { if ( $ var instanceof Data ) { return $ var ; } if ( null === $ this -> cloner ) { if ( ! class_exists ( CutStub :: class ) ) { throw new \ LogicException ( sprintf ( 'The VarDumper component is needed for the %s() method. Install symfony/var-dumper version 3.4 or above.' , __METHOD__ ) ) ; } $ this -> cloner = new VarCloner ( ) ; $ this -> cloner -> setMaxItems ( - 1 ) ; $ this -> cloner -> addCasters ( $ this -> getCasters ( ) ) ; } return $ this -> cloner -> cloneVar ( $ var ) ; }
docstring: Converts the variable into a serializable Data instance.
  
  This array can be displayed in the template using
  the VarDumper component.
  
  @param mixed $var
  
  @return Data
docstring_tokens: Converts the variable into a serializable Data instance .