Completed
Pull Request — master (#105)
by Kristof
16:21 queued 09:33
created

MediaObjectRepository::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 13
rs 9.4286
c 1
b 0
f 0
cc 1
eloc 10
nc 1
nop 3
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