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

UpdateWebsite::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
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