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

MarketCap   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 7
eloc 32
c 0
b 0
f 0
dl 0
loc 71
rs 10
ccs 17
cts 17
cp 1

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getLongFmt() 0 3 1
A setFmt() 0 5 1
A setLongFmt() 0 5 1
A metadata() 0 3 1
A getFmt() 0 3 1
A getRaw() 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 MarketCap 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 RAW = 'raw';
10
    public const FMT = 'fmt';
11
    public const LONG_FMT = 'longFmt';
12
13
    protected const PROPERTY_NAME_MAP = [
14
        'raw' => self::RAW,
15
        'Raw' => self::RAW,
16
        'fmt' => self::FMT,
17
        'Fmt' => self::FMT,
18
        'long_fmt' => self::LONG_FMT,
19
        'longFmt' => self::LONG_FMT,
20
        'LongFmt' => self::LONG_FMT,
21
    ];
22
23
    private const METADATA = [
24
        self::RAW => [
25
            'type' => self::TYPE_FLOAT,
26
        ],
27
        self::FMT => [
28
            'type' => self::TYPE_STRING,
29
        ],
30
        self::LONG_FMT => [
31
            'type' => self::TYPE_STRING,
32
        ],
33
    ];
34
35
    protected ?float $raw = null;
36
    protected ?string $fmt = null;
37
    protected ?string $longFmt = null;
38
39 1
    public function getRaw(): ?float
40
    {
41 1
        return $this->raw;
42
    }
43
44 1
    public function setRaw(?float $raw): self
45
    {
46 1
        $this->raw = $raw;
47
48 1
        return $this;
49
    }
50
51 1
    public function getFmt(): ?string
52
    {
53 1
        return $this->fmt;
54
    }
55
56 1
    public function setFmt(?string $fmt): self
57
    {
58 1
        $this->fmt = $fmt;
59
60 1
        return $this;
61
    }
62
63 1
    public function getLongFmt(): ?string
64
    {
65 1
        return $this->longFmt;
66
    }
67
68 1
    public function setLongFmt(?string $longFmt): self
69
    {
70 1
        $this->longFmt = $longFmt;
71
72 1
        return $this;
73
    }
74
75 13
    protected function metadata(): array
76
    {
77 13
        return self::METADATA;
78
    }
79
}
80