Completed
Pull Request — master (#334)
by Luc
04:09
created

AbstractAddImage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getImageId() 0 4 1
1
<?php
2
3
namespace CultuurNet\UDB3\Offer\Commands\Image;
4
5
use CultuurNet\UDB3\Offer\Commands\AbstractCommand;
6
use ValueObjects\Identity\UUID;
7
8
abstract class AbstractAddImage extends AbstractCommand
9
{
10
    /**
11
     * @var UUID
12
     */
13
    protected $imageId;
14
15
    public function __construct($itemId, UUID $imageId)
16
    {
17
        parent::__construct($itemId);
18
        $this->imageId = $imageId;
19
    }
20
21
    /**
22
     * @return UUID
23
     */
24
    public function getImageId()
25
    {
26
        return $this->imageId;
27
    }
28
}
29