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

NovaSearchPartnerResult::addPartner()   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 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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