Passed
Push — master ( f6cdcb...e2cbe1 )
by Chema
03:23
created

RegularMarketChange   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
eloc 22
c 0
b 0
f 0
dl 0
loc 51
rs 10
ccs 12
cts 12
cp 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getFmt() 0 3 1
A getRaw() 0 3 1
A setFmt() 0 5 1
A metadata() 0 3 1
A setRaw() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Chemaclass\StockTicker\Domain\WriteModel;
6
7
final class RegularMarketChange extends AbstractWriteModel
0 ignored issues
show
Bug introduced by
The type Chemaclass\StockTicker\D...odel\AbstractWriteModel was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
{
9
    public const FMT = 'fmt';
10
    public const RAW = 'raw';
11
12
    protected const PROPERTY_NAME_MAP = [
13
        'raw' => self::RAW,
14
        'Raw' => self::RAW,
15
        'fmt' => self::FMT,
16
        'Fmt' => self::FMT,
17
    ];
18
19
    private const METADATA = [
20
        self::FMT => [
21
            'type' => self::TYPE_STRING,
22
        ],
23
        self::RAW => [
24
            'type' => self::TYPE_FLOAT,
25
        ],
26
    ];
27
28
    protected ?string $fmt = null;
29
    protected ?float $raw = null;
30
31 1
    public function getFmt(): ?string
32
    {
33 1
        return $this->fmt;
34
    }
35
36 1
    public function setFmt(?string $fmt): self
37
    {
38 1
        $this->fmt = $fmt;
39
40 1
        return $this;
41
    }
42
43 1
    public function getRaw(): ?float
44
    {
45 1
        return $this->raw;
46
    }
47
48 1
    public function setRaw(?float $raw): self
49
    {
50 1
        $this->raw = $raw;
51
52 1
        return $this;
53
    }
54
55 13
    protected function metadata(): array
56
    {
57 13
        return self::METADATA;
58
    }
59
}
60