Completed
Push — master ( 7e212d...676b8c )
by wen
12:32
created

Extensions::initialize()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Sco\Admin\Display;
4
5
use Illuminate\Support\Collection;
6
use Sco\Admin\Contracts\Display\Extensions\ExtensionInterface;
7
8
class Extensions extends Collection
9
{
10
    public function apply($query)
11
    {
12
        $this->each(function (ExtensionInterface $extension) use ($query) {
13
            $extension->apply($query);
14
        });
15
    }
16
}
17