Completed
Pull Request — master (#326)
by Luc
04:24
created

AbstractUpdateContactPoint::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace CultuurNet\UDB3\Offer\Commands;
4
5
use CultuurNet\UDB3\ContactPoint;
6
7
abstract class AbstractUpdateContactPoint extends AbstractCommand
8
{
9
    /**
10
     * The contactPoint entry
11
     * @var ContactPoint
12
     */
13
    protected $contactPoint;
14
15
    /**
16
     * @param string $itemId
17
     * @param ContactPoint $contactPoint
18
     */
19
    public function __construct($itemId, ContactPoint $contactPoint)
20
    {
21
        parent::__construct($itemId);
22
        $this->contactPoint = $contactPoint;
23
    }
24
25
    /**
26
     * @return ContactPoint
27
     */
28
    public function getContactPoint()
29
    {
30
        return $this->contactPoint;
31
    }
32
}
33