Passed
Push — master ( c0f32c...e879f4 )
by Chema
04:17 queued 41s
created

MarketCap::setLongFmt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 1
crap 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
    private const METADATA = [
14
        self::RAW => [
15
            'type' => self::TYPE_FLOAT,
16
        ],
17
        self::FMT => [
18
            'type' => self::TYPE_STRING,
19
        ],
20
        self::LONG_FMT => [
21
            'type' => self::TYPE_STRING,
22
        ],
23
    ];
24
25
    protected ?float $raw = null;
26
    protected ?string $fmt = null;
27
    protected ?string $longFmt = null;
28
29
    public function getRaw(): ?float
30
    {
31
        return $this->raw;
32
    }
33
34 1
    public function setRaw(?float $raw): self
35
    {
36 1
        $this->raw = $raw;
37
38 1
        return $this;
39
    }
40
41
    public function getFmt(): ?string
42
    {
43
        return $this->fmt;
44
    }
45
46 1
    public function setFmt(?string $fmt): self
47
    {
48 1
        $this->fmt = $fmt;
49
50 1
        return $this;
51
    }
52
53
    public function getLongFmt(): ?string
54
    {
55
        return $this->longFmt;
56
    }
57
58 1
    public function setLongFmt(?string $longFmt): self
59
    {
60 1
        $this->longFmt = $longFmt;
61
62 1
        return $this;
63
    }
64
65 12
    protected function metadata(): array
66
    {
67 12
        return self::METADATA;
68
    }
69
}
70