Completed
Push — development ( b7987d...8c0e57 )
by Claudio
05:33
created

UserCurrency::store()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App\Models;
4
5
use Sofa\Eloquence\Metable\InvalidMutatorException;
6
7
/**
8
 * Class UserCurrency
9
 * @package App\Models
10
 */
11
class UserCurrency extends ChocolateyModel
12
{
13
    /**
14
     * Disable Timestamps
15
     *
16
     * @var bool
17
     */
18
    public $timestamps = false;
19
20
    /**
21
     * The table associated with the model.
22
     *
23
     * @var string
24
     */
25
    protected $table = 'users_currency';
26
27
    /**
28
     * Primary Key of the Table
29
     *
30
     * @var string
31
     */
32
    protected $primaryKey = 'id';
33
34
    /**
35
     * Store Function
36
     *
37
     * A UserCurrency can't be inserted by the CMS.
38
     * Only by the Emulator
39
     */
40
    public function store()
41
    {
42
        throw new InvalidMutatorException("You cannot store a UserCurrency by Chocolatey. UserCurrency are created by the Emulator.");
43
    }
44
}
45