ComponentCollection::prefix()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Spatie\BladeX;
4
5
use Illuminate\Support\Collection;
6
7
/**
8
 * @property-read Component $each
9
 */
10
class ComponentCollection extends Collection
11
{
12
    public function prefix(string $prefix)
13
    {
14
        $this->each->prefix($prefix);
15
16
        return $this;
17
    }
18
19
    public function withoutNamespace()
20
    {
21
        $this->each->withoutNamespace();
22
23
        return $this;
24
    }
25
}
26