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

UpdateTitle::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 2
1
<?php
2
3
namespace CultuurNet\UDB3\Organizer\Commands;
4
5
use CultuurNet\UDB3\Title;
6
7
class UpdateTitle extends AbstractUpdateOrganizerCommand
8
{
9
    /**
10
     * @var Title
11
     */
12
    private $title;
13
14
    /**
15
     * UpdateTitle constructor.
16
     * @param string $organizerId
17
     * @param Title $title
18
     */
19
    public function __construct(
20
        $organizerId,
21
        Title $title
22
    ) {
23
        parent::__construct($organizerId);
24
        $this->title = $title;
25
    }
26
27
    /**
28
     * @return Title
29
     */
30
    public function getTitle()
31
    {
32
        return $this->title;
33
    }
34
}
35