<?php/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/namespaceSymfony\Component\HttpKernel\DataCollector;
/**
* DataCollector.
*
* Children of this class must store the collected data in the data property.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
abstract class DataCollectorimplements DataCollectorInterface, \Serializable {
protected $data;
public functionserialize() {
returnserialize($this->data);
}
public functionunserialize($data) {
$this->data = unserialize($data);
}
}