Completed
Pull Request — master (#113)
by Kristof
06:16
created

ExportEventsAsJsonLDJSONDeserializer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createCommand() 0 13 1
1
<?php
2
3
namespace CultuurNet\UDB3\EventExport\Command;
4
5
use CultuurNet\UDB3\EventExport\EventExportQuery;
6
use ValueObjects\Web\EmailAddress;
7
8
class ExportEventsAsJsonLDJSONDeserializer extends ExportEventsJSONDeserializer
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    protected function createCommand(
14
        EventExportQuery $query,
15
        EmailAddress $address = null,
16
        $selection = null,
17
        $include = null
18
    ) {
19
        return new ExportEventsAsJsonLD(
20
            $query,
21
            $address,
22
            $selection,
23
            $include
24
        );
25
    }
26
}
27