BillingRecord   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 33
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getLastName() 0 3 1
A getEmail() 0 3 1
A getFirstName() 0 3 1
A getRegistry() 0 2 1
1
<?php
2
3
namespace ByTIC\Payments\Tests\Fixtures\Records;
4
5
use ByTIC\Payments\Models\BillingRecord\Traits\RecordTrait as BillingRecordTrait;
6
use ByTIC\Common\Records\Traits\HasSerializedOptions\RecordTrait as HasSerializedOptions;
7
use Nip\Records\AbstractModels\Record;
8
9
/**
10
 * Class PurchasableRecord
11
 */
12
class BillingRecord extends Record
13
{
14
    use HasSerializedOptions;
15
    use BillingRecordTrait;
16
17
    public $phone = '99';
18
19
    /**
20
     * @return string
21
     */
22
    public function getFirstName()
23
    {
24
        return 'John';
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getLastName()
31
    {
32
        return 'Doe';
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getEmail()
39
    {
40
        return '[email protected]';
41
    }
42
43
    public function getRegistry()
44
    {
45
    }
46
}
47