for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Understand\UnderstandLaravel5;
class DataCollector
{
/**
* Current token
*
* @var type
*/
protected $data = [];
* @param $key
* @param $value
public function set($key, $value)
$this->data[$key] = $value;
}
public function setInArray($key, $value)
$this->data[$key][] = $value;
* @return mixed
public function getByKey($key)
if (isset($this->data[$key]))
return $this->data[$key];