Row::beforeUpdate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
/**
4
 * @copyright Bluz PHP Team
5
 * @link      https://github.com/bluzphp/skeleton
6
 */
7
8
namespace Application\Wallets;
9
10
/**
11
 * Class Row for `wallets`
12
 *
13
 * @package  Application\Wallets
14
 *
15
 * @property integer $userId
16
 * @property integer $amount
17
 * @property integer $blocked
18
 * @property string $created
19
 * @property string $updated
20
 *
21
 * @author   Anton Shevchuk
22
 * @created  2017-10-19 15:21:27
23
 */
24
class Row extends \Bluz\Db\Row
0 ignored issues
show
Bug introduced by
The type Bluz\Db\Row was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
25
{
26
    /**
27
     * @return void
28
     */
29
    public function beforeInsert(): void
30
    {
31
    }
32
33
    /**
34
     * @return void
35
     */
36
    public function beforeUpdate(): void
37
    {
38
    }
39
40
    /**
41
     * getAvailable
42
     *
43
     * @return int
44
     */
45
    public function getAvailable()
46
    {
47
        return $this->amount - $this->blocked;
48
    }
49
}
50