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

RegularMarketChangePercent::metadata()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Chemaclass\StockTicker\Domain\WriteModel;
6
7
final class RegularMarketChangePercent 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
    private const METADATA = [
13
        self::FMT => [
14
            'type' => self::TYPE_STRING,
15
        ],
16
        self::RAW => [
17
            'type' => self::TYPE_FLOAT,
18
        ],
19
    ];
20
21
    protected ?string $fmt = null;
22
    protected ?float $raw = null;
23
24
    public function getFmt(): ?string
25
    {
26
        return $this->fmt;
27
    }
28
29 1
    public function setFmt(string $fmt): self
30
    {
31 1
        $this->fmt = $fmt;
32
33 1
        return $this;
34
    }
35
36
    public function getRaw(): ?float
37
    {
38
        return $this->raw;
39
    }
40
41 1
    public function setRaw(float $raw): self
42
    {
43 1
        $this->raw = $raw;
44
45 1
        return $this;
46
    }
47
48 12
    protected function metadata(): array
49
    {
50 12
        return self::METADATA;
51
    }
52
}
53