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

HasMoneyTrait::getMoney()   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 0
dl 0
loc 3
rs 10
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
}