Barryvdh\Debugbar\DataCollector\ViewCollector::__construct PHP Method

__construct() public method

Create a ViewCollector
public __construct ( boolean $collectData = true )
$collectData boolean Collects view data when tru
    public function __construct($collectData = true)
    {
        $this->collect_data = $collectData;
        $this->name = 'views';
        $this->templates = [];
        $this->exporter = new ValueExporter();
    }