Passed
Push — master ( 81bf05...4d256e )
by Daniel
13:07
created

NovaSearchPartnerResult   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addPartner() 0 3 1
A getPartners() 0 3 1
1
<?php
2
3
namespace OrcaServices\NovaApi\Result;
4
5
/**
6
 * Data.
7
 */
8
final class NovaSearchPartnerResult
9
{
10
    use NovaMessageTrait;
11
12
    /**
13
     * Partners.
14
     *
15
     * @var NovaPartner[]
16
     */
17
    private $partners = [];
18
19
    /**
20
     * Add partner.
21
     *
22
     * @param NovaPartner $novaPartner The nova partner (customer)
23
     *
24
     * @return void
25
     */
26 3
    public function addPartner(NovaPartner $novaPartner)
27
    {
28 3
        $this->partners[] = $novaPartner;
29 3
    }
30
31
    /**
32
     * Get list of partners.
33
     *
34
     * @return NovaPartner[] The list of partners
35
     */
36 3
    public function getPartners()
37
    {
38 3
        return $this->partners;
39
    }
40
}
41