Test Failed
Push — master ( 7fb687...840826 )
by Gabriel
12:03
created

HasMoneyTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getMoney() 0 3 1
1
<?php
2
3
namespace ByTIC\Money\Traits;
4
5
/**
6
 * Trait HasMoneyTrait
7
 * @package ByTIC\Money\Traits
8
 *
9
 * @method string getAmount
10
 */
11
trait HasMoneyTrait
12
{
13
14
    /**
15
     * @var \Money\Money
16
     */
17
    protected $money;
18
19
    /**
20
     * Get money.
21
     *
22
     * @return \Money\Money
23
     */
24
    public function getMoney(): \Money\Money
25
    {
26
        return $this->money;
27
    }
28
}