RecogniseImage   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 16
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getOverwrite() 0 2 1
A __construct() 0 3 1
A getImageId() 0 2 1
1
<?php
2
3
namespace App\Message;
4
5
class RecogniseImage {
6
    /** @var int */
7
    private $imageId;
8
9
    /** @var bool */
10
    private $overwrite;
11
12
    public function __construct(int $imageId, bool $overwrite = false) {
13
        $this->imageId = $imageId;
14
        $this->overwrite = $overwrite;
15
    }
16
    public function getImageId(): int {
17
        return $this->imageId;
18
    }
19
    public function getOverwrite(): bool {
20
        return $this->overwrite;
21
    }
22
}