vpietri/magento2-developer-quickdevbar

View on GitHub
Service/Dumper.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace ADM\QuickDevBar\Service;

use ADM\QuickDevBar\Api\ServiceInterface;

class Dumper implements ServiceInterface
{
    /**
     * @var PluginList
     */
    private $dumps = [];


    public function pullData()
    {
        return $this->dumps;
    }

    public function addDump(string $output, array $bt, $ajaxReq = null)
    {
        $this->dumps[] = ['dump'=>$output, 'bt'=> $bt, 'ajaxReq'=> $ajaxReq];
    }
}