for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Blast Project package.
*
* Copyright (C) 2015-2017 Libre Informatique
* This file is licenced under the GNU LGPL v3.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace Blast\CoreBundle\Profiler;
class Collector
{
/**
* @var mixed
private $data;
public function __construct()
$this->data = [];
}
* @param mixed $data
* @return Collector
public function collect($name, $data, $destination = DataCollection::DESTINATION_PROFILER, $type = null)
$dataCollection = new DataCollection($name, $data, $destination, $type);
$this->data[] = $dataCollection;
return $this;
* @return mixed
public function getData()
return $this->data;