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

UpdateTitle   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 getTitle() 0 4 1
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