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

Buyer::getTable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
nc 1
nop 0
dl 0
loc 3
c 0
b 0
f 0
cc 1
rs 10
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