Passed
Push — master ( 43186b...d45fb7 )
by Gabriel
14:32
created

PurchasesTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
c 1
b 0
f 1
dl 0
loc 19
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getStatusItemsDirectory() 0 3 1
A getStatusItemsRootNamespace() 0 3 1
1
<?php
2
3
namespace ByTIC\Payments\Models\Purchases;
4
5
use ByTIC\Payments\Models\Purchase\Traits\IsPurchasableRepositoryTrait;
6
use ByTIC\Payments\Models\Transactions\Transactions;
7
8
/**
9
 * Trait PurchasesTrait
10
 * @package ByTIC\Payments\Models\Purchases
11
 */
12
trait PurchasesTrait
13
{
14
    use IsPurchasableRepositoryTrait;
15
    use \ByTIC\Models\SmartProperties\RecordsTraits\HasStatus\RecordsTrait;
16
17
    /**
18
     * @return string
19
     */
20
    public function getStatusItemsRootNamespace()
21
    {
22
        return '\ByTIC\Payments\Models\Transactions\Statuses\\';
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function getStatusItemsDirectory()
29
    {
30
        return dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Transactions' . DIRECTORY_SEPARATOR . 'Statuses';
31
    }
32
}