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

UpdateWebsite   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

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