Passed
Push — main ( 9c0f97...facafa )
by Iain
04:12
created

Product::setExternalReference()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * Copyright Iain Cambridge 2020-2023.
7
 *
8
 * Use of this software is governed by the Business Source License included in the LICENSE file and at https://getparthenon.com/docs/next/license.
9
 *
10
 * Change Date: TBD ( 3 years after 2.2.0 release )
11
 *
12
 * On the date above, in accordance with the Business Source License, use of this software will be governed by the open source license specified in the LICENSE file.
13
 */
14
15
namespace Parthenon\Billing\Entity;
16
17
class Product
18
{
19
    private $id;
20
21
    private string $name;
22
23
    private string $externalReference;
24
25
    /**
26
     * @return mixed
27
     */
28
    public function getId()
29
    {
30
        return $this->id;
31
    }
32
33
    /**
34
     * @param mixed $id
35
     */
36
    public function setId($id): void
37
    {
38
        $this->id = $id;
39
    }
40
41
    public function getName(): string
42
    {
43
        return $this->name;
44
    }
45
46
    public function setName(string $name): void
47
    {
48
        $this->name = $name;
49
    }
50
51
    public function getExternalReference(): string
52
    {
53
        return $this->externalReference;
54
    }
55
56
    public function setExternalReference(string $externalReference): void
57
    {
58
        $this->externalReference = $externalReference;
59
    }
60
}
61