Passed
Pull Request — master (#1)
by Silvan
06:17
created

NovaSearchServicesResult   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 21
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A addService() 0 3 1
1
<?php
2
3
namespace OrcaServices\NovaApi\Result;
4
5
final class NovaSearchServicesResult
6
{
7
    use NovaMessageTrait;
8
9
    /**
10
     * Services
11
     *
12
     * @var NovaService[]
13
     */
14
    public $services = [];
15
16
    /**
17
     * Add service.
18
     *
19
     * @param NovaService $service The nova service
20
     *
21
     * @return void
22
     */
23 1
    public function addService(NovaService $service)
24
    {
25 1
        $this->services[] = $service;
26 1
    }
27
}
28