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

createCommand()   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
c 1
b 0
f 0
dl 0
loc 13
rs 9.4285
cc 1
eloc 10
nc 1
nop 4
1
<?php
2
3
namespace CultuurNet\UDB3\EventExport\Command;
4
5
use CultuurNet\UDB3\EventExport\EventExportQuery;
6
use ValueObjects\Web\EmailAddress;
7
8
class ExportEventsAsOOXMLJSONDeserializer 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 ExportEventsAsOOXML(
20
            $query,
21
            $address,
22
            $selection,
23
            $include
24
        );
25
    }
26
}
27