Passed
Pull Request — master (#9)
by Бабичев
03:04
created

Buyer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTable() 0 3 1
1
<?php
2
3
namespace Bavix\Wallet\Test\Models;
4
5
use Bavix\Wallet\Traits\CanBePaid;
6
use Bavix\Wallet\Interfaces\Customer;
7
use Illuminate\Database\Eloquent\Model;
8
9
/**
10
 * Class User
11
 *
12
 * @package Bavix\Wallet\Test\Models
13
 * @property string $name
14
 * @property string $email
15
 */
16
class Buyer extends Model implements Customer
17
{
18
    use CanBePaid;
0 ignored issues
show
Bug introduced by
The trait Bavix\Wallet\Traits\CanBePaid requires the property $total which is not provided by Bavix\Wallet\Test\Models\Buyer.
Loading history...
19
20
    /**
21
     * @return string
22
     */
23
    public function getTable(): string
24
    {
25
        return 'users';
26
    }
27
}
28