Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
4 / 4
BasketComposer
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
4 / 4
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 compose
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
<?php
namespace Mtc\Shop\Http\ViewComposers;
use Illuminate\View\View;
use Mtc\Shop\Contracts\BasketContract;
class BasketComposer
{
    protected $basket;
    public function __construct(BasketContract $basket)
    {
        $this->basket = $basket;
    }
    public function compose(View $view)
    {
        $view->with('basket', $this->basket);
    }
}