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 DataCollection
{
const DESTINATION_TOOLBAR = 'toolbar';
const DESTINATION_PROFILER = 'profiler';
const DESTINATION_BOTH = 'both';
/**
* @var string
private $name;
* @var mixed
private $data;
private $type;
private $destination;
public function __construct($name, $data, $destination = self::DESTINATION_PROFILER, $type = null)
$this->name = $name;
$this->data = $data;
$this->type = ($type !== null ? $type : (is_array($data) ? 'Array' : get_class($data)));
$this->destination = $destination;
}
* @return string
public function getName()
return $this->name;
* @param string name
* @return self
public function setName($name)
return $this;
* @return mixed
public function getData()
return $this->data;
* @param mixed data
public function setData($data)
public function getType()
return $this->type;
* @param string type
public function setType($type)
$this->type = $type;
public function getDestination()
return $this->destination;
* @param string destination
public function setDestination($destination)