GetRecordedEventsIsConfigurable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRecordedEvents() 0 4 1
1
<?php declare(strict_types=1);
2
namespace Kepawni\Twilted\Basic;
3
4
use Kepawni\Twilted\EventStream;
5
6
trait GetRecordedEventsIsConfigurable
7
{
8
    protected static $eventStreamClass = SimpleEventStream::class;
9
    protected $recordedEvents = [];
10
11
    public function getRecordedEvents(): EventStream
12
    {
13
        $eventStreamClass = self::$eventStreamClass;
14
        return new $eventStreamClass($this->recordedEvents);
15
    }
16
}
17