ok

Mini Shell

Direktori : /home2/selectio/public_html/a1tex.in/vendor/facade/flare-client-php/src/Middleware/
Upload File :
Current File : /home2/selectio/public_html/a1tex.in/vendor/facade/flare-client-php/src/Middleware/AddGlows.php

<?php

namespace Facade\FlareClient\Middleware;

use Facade\FlareClient\Glows\Recorder;
use Facade\FlareClient\Report;

class AddGlows
{
    /** @var Recorder */
    private $recorder;

    public function __construct(Recorder $recorder)
    {
        $this->recorder = $recorder;
    }

    public function handle(Report $report, $next)
    {
        foreach ($this->recorder->glows() as $glow) {
            $report->addGlow($glow);
        }

        return $next($report);
    }
}

Zerion Mini Shell 1.0