Completed
Pull Request — master (#261)
by Luc
04:50
created

UpdateAudience   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
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 29
rs 10

2 Methods

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