Completed
Pull Request — master (#144)
by Kristof
05:52
created

ContentTypes   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
B map() 0 27 1
1
<?php
2
/**
3
 * @file
4
 */
5
6
namespace CultuurNet\UDB3\Place\Events;
7
8
class ContentTypes
9
{
10
    /**
11
     * Intentionally made private.
12
     */
13
    private function __construct()
14
    {
15
16
    }
17
18
    /**
19
     * @return array
20
     * 
21
     * @todo once we upgrade to PHP 5.6+ this can be moved to a constant.
22
     */
23
    public static function map()
24
    {
25
        return [
26
            BookingInfoUpdated::class => 'application/vnd.cultuurnet.udb3-events.place-booking-info-updated+json',
27
            ContactPointUpdated::class => 'application/vnd.cultuurnet.udb3-events.place-contact-point-updated+json',
28
            DescriptionTranslated::class => 'application/vnd.cultuurnet.udb3-events.place-description-translated+json',
29
            DescriptionUpdated::class => 'application/vnd.cultuurnet.udb3-events.place-description-updated+json',
30
            FacilitiesUpdated::class => 'application/vnd.cultuurnet.udb3-events.place-facilities-updated+json',
31
            ImageAdded::class => 'application/vnd.cultuurnet.udb3-events.place-image-added+json',
32
            ImageRemoved::class => 'application/vnd.cultuurnet.udb3-events.place-image-removed+json',
33
            ImageUpdated::class => 'application/vnd.cultuurnet.udb3-events.place-image-updated+json',
34
            LabelAdded::class => 'application/vnd.cultuurnet.udb3-events.place-label-added+json',
35
            LabelDeleted::class => 'application/vnd.cultuurnet.udb3-events.place-label-deleted+json',
36
            MainImageSelected::class => 'application/vnd.cultuurnet.udb3-events.place-main-image-selected+json',
37
            MajorInfoUpdated::class => 'application/vnd.cultuurnet.udb3-events.place-major-info-updated+json',
38
            OrganizerDeleted::class => 'application/vnd.cultuurnet.udb3-events.place-organizer-deleted+json',
39
            OrganizerUpdated::class => 'application/vnd.cultuurnet.udb3-events.place-organizer-updated+json',
40
            PlaceCreated::class => 'application/vnd.cultuurnet.udb3-events.place-created+json',
41
            PlaceDeleted::class => 'application/vnd.cultuurnet.udb3-events.place-deleted+json',
42
            PlaceImportedFromUDB2::class => 'application/vnd.cultuurnet.udb3-events.place-imported-from-udb2-actor+json',
43
            PlaceImportedFromUDB2Event::class => 'application/vnd.cultuurnet.udb3-events.place-imported-from-udb2-event+json',
44
            PlaceUpdatedFromUDB2::class => 'application/vnd.cultuurnet.udb3-events.place-updated-from-udb2+json',
45
            TitleTranslated::class => 'application/vnd.cultuurnet.udb3-events.place-title-translated+json',
46
            TypicalAgeRangeUpdated::class => 'application/vnd.cultuurnet.udb3-events.place-typical-age-range-updated+json',
47
            TypicalAgeRangeDeleted::class => 'application/vnd.cultuurnet.udb3-events.place-typical-age-range-deleted+json',
48
        ];
49
    }
50
}
51