Row::beforeUpdate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
nc 1
nop 0
dl 0
loc 2
c 1
b 0
f 0
cc 1
rs 10
1
<?php
2
3
/**
4
 * @namespace
5
 */
6
7
namespace Application\Payments;
8
9
use Application\Transactions;
0 ignored issues
show
Bug introduced by
The type Application\Transactions 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...
10
use Application\Users;
0 ignored issues
show
Bug introduced by
The type Application\Users 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...
11
12
/**
13
 * Class Row for `payments`
14
 *
15
 * @package  Application\Payments
16
 *
17
 * @property integer $id
18
 * @property integer $transactionId
19
 * @property string $amount
20
 * @property string $currency
21
 * @property string $exchange
22
 * @property string $provider
23
 * @property string $foreignId
24
 * @property string $rawData
25
 * @property string $created
26
 * @property string $updated
27
 *
28
 * @author   dev
29
 * @created  2017-11-02 10:31:59
30
 */
31
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...
32
{
33
    /**
34
     * @return void
35
     */
36
    public function beforeInsert(): void
37
    {
38
    }
39
40
    /**
41
     * @return void
42
     */
43
    public function beforeUpdate(): void
44
    {
45
    }
46
47
    /**
48
     * getTransaction
49
     *
50
     * @return Transactions\Row|null
51
     * @throws \Bluz\Db\Exception\RelationNotFoundException
52
     * @throws \Bluz\Db\Exception\TableNotFoundException
53
     */
54
    public function getTransaction(): ?Transactions\Row
0 ignored issues
show
Bug introduced by
The type Application\Transactions\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...
55
    {
56
        return $this->getRelation('Transactions');
57
    }
58
59
    /**
60
     * getTransaction
61
     *
62
     * @return Transactions\Row|null
63
     * @throws \Bluz\Db\Exception\RelationNotFoundException
64
     * @throws \Bluz\Db\Exception\TableNotFoundException
65
     */
66
    public function getUser(): ?Users\Row
0 ignored issues
show
Bug introduced by
The type Application\Users\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...
67
    {
68
        return $this->getRelation('Transactions')->getUser();
69
    }
70
}
71