Collection::append()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 3
cts 3
cp 1
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php namespace C4tech\RayEmitter\Event;
2
3
use C4tech\RayEmitter\Contracts\Domain\Event as EventInterface;
4
use C4tech\RayEmitter\Contracts\Event\Collection as CollectionInterface;
5
use Illuminate\Support\Collection as BaseCollection;
6
7
class Collection extends BaseCollection implements CollectionInterface
8
{
9
    /**
10
     * @inheritDoc
11
     */
12 2
    public function append(EventInterface $event)
13
    {
14 2
        $this->push($event);
15 2
    }
16
}
17