Completed
Pull Request — master (#105)
by Kristof
13:40 queued 05:31
created

MediaObjectRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 16
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
1
<?php
2
3
namespace CultuurNet\UDB3\Media;
4
5
use Broadway\EventHandling\EventBusInterface;
6
use Broadway\EventSourcing\AggregateFactory\PublicConstructorAggregateFactory;
7
use Broadway\EventSourcing\EventSourcingRepository;
8
use Broadway\EventStore\EventStoreInterface;
9
10
class MediaObjectRepository extends EventSourcingRepository
11
{
12
    public function __construct(
13
        EventStoreInterface $eventStore,
14
        EventBusInterface $eventBus,
15
        array $eventStreamDecorators = array()
16
    ) {
17
        parent::__construct(
18
            $eventStore,
19
            $eventBus,
20
            MediaObject::class,
21
            new PublicConstructorAggregateFactory(),
22
            $eventStreamDecorators
23
        );
24
    }
25
}
26