4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\Tests\Fixtures\DataCollector;
14 use Symfony\Component\HttpFoundation\Request;
15 use Symfony\Component\HttpFoundation\Response;
16 use Symfony\Component\HttpKernel\DataCollector\DataCollector;
18 class CloneVarDataCollector extends DataCollector
22 public function __construct($varToClone)
24 $this->varToClone = $varToClone;
27 public function collect(Request $request, Response $response, \Exception $exception = null)
29 $this->data = $this->cloneVar($this->varToClone);
32 public function reset()
34 $this->data = array();
37 public function getData()
42 public function getName()