MetricEnvelope   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setData() 0 4 1
A getData() 0 3 1
1
<?php
2
3
namespace DevoraliveCachet\Result\Metric;
4
5
use DevoraliveCachet\Result\Envelope;
6
use DevoraliveCachet\Entity\Metric;
7
use JMS\Serializer\Annotation as JMS;
8
9
/**
10
 * Class MetricEnvelope
11
 * @package DevoraliveCachet\Result\Metric
12
 */
13
class MetricEnvelope implements Envelope
14
{
15
16
    /**
17
     * @var Metric
18
     * @JMS\Type("DevoraliveCachet\Entity\Metric")
19
     */
20
    private $data;
21
22
    /**
23
     * Get the value of Data
24
     *
25
     * @return mixed
26
     */
27
    public function getData()
28
    {
29
        return $this->data;
30
    }
31
32
    /**
33
     * Set the value of Data
34
     *
35
     * @param mixed data
0 ignored issues
show
Bug introduced by
The type DevoraliveCachet\Result\Metric\data 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...
36
     *
37
     * @return self
38
     */
39
    public function setData($data)
40
    {
41
        $this->data = $data;
42
        return $this;
43
    }
44
}
45