ContentTypes::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace CultuurNet\UDB3\Media\Events;
4
5
class ContentTypes
6
{
7
    /**
8
     * Intentionally made private.
9
     */
10
    private function __construct()
11
    {
12
13
    }
14
15
    /**
16
     * @return array
17
     *
18
     * @todo once we upgrade to PHP 5.6+ this can be moved to a constant.
19
     */
20
    public static function map()
21
    {
22
        return [
23
            MediaObjectCreated::class => 'application/vnd.cultuurnet.udb3-events.media-object-created+json',
24
        ];
25
    }
26
}
27