Completed
Pull Request — master (#290)
by Luc
04:33
created

UpdateContactPoint   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getContactPoint() 0 4 1
1
<?php
2
3
namespace CultuurNet\UDB3\Organizer\Commands;
4
5
use CultuurNet\UDB3\ContactPoint;
6
7
class UpdateContactPoint extends AbstractUpdateOrganizerCommand
8
{
9
    /**
10
     * @var ContactPoint
11
     */
12
    private $contactPoint;
13
14
    /**
15
     * UpdateContactPoint constructor.
16
     * @param string $organizerId
17
     * @param ContactPoint $contactPoint
18
     */
19
    public function __construct(
20
        $organizerId,
21
        ContactPoint $contactPoint
22
    ) {
23
        parent::__construct($organizerId);
24
        $this->contactPoint = $contactPoint;
25
    }
26
27
    /**
28
     * @return ContactPoint
29
     */
30
    public function getContactPoint()
31
    {
32
        return $this->contactPoint;
33
    }
34
}
35