ContentTypes   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A map() 0 6 1
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