abstract class DataCollector in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/DataCollector/DataCollector.php \Symfony\Component\HttpKernel\DataCollector\DataCollector
DataCollector.
Children of this class must store the collected data in the data property.
@author Fabien Potencier <fabien@symfony.com> @author Bernhard Schussek <bschussek@symfony.com>
Hierarchy
- class \Symfony\Component\HttpKernel\DataCollector\DataCollector implements \Symfony\Component\HttpKernel\DataCollector\Serializable, DataCollectorInterface
Expanded class hierarchy of DataCollector
2 files declare their use of DataCollector
- MongoDbProfilerStorageTest.php in vendor/
symfony/ http-kernel/ Tests/ Profiler/ MongoDbProfilerStorageTest.php - TranslationDataCollector.php in vendor/
symfony/ translation/ DataCollector/ TranslationDataCollector.php
File
- vendor/
symfony/ http-kernel/ DataCollector/ DataCollector.php, line 24
Namespace
Symfony\Component\HttpKernel\DataCollectorView source
abstract class DataCollector implements DataCollectorInterface, \Serializable {
protected $data = array();
/**
* @var ValueExporter
*/
private $valueExporter;
public function serialize() {
return serialize($this->data);
}
public function unserialize($data) {
$this->data = unserialize($data);
}
/**
* Converts a PHP variable to a string.
*
* @param mixed $var A PHP variable
*
* @return string The string representation of the variable
*/
protected function varToString($var) {
if (null === $this->valueExporter) {
$this->valueExporter = new ValueExporter();
}
return $this->valueExporter
->exportValue($var);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DataCollector:: |
protected | property | ||
DataCollector:: |
private | property | ||
DataCollector:: |
public | function | 1 | |
DataCollector:: |
public | function | 1 | |
DataCollector:: |
protected | function | Converts a PHP variable to a string. | |
DataCollectorInterface:: |
public | function | Collects data for the given Request and Response. | 11 |
DataCollectorInterface:: |
public | function | Returns the name of the collector. | 11 |