1 | <?php |
||
2 | |||
3 | /** |
||
4 | * @copyright Bluz PHP Team |
||
5 | * @link https://github.com/bluzphp/skeleton |
||
6 | */ |
||
7 | |||
8 | namespace Application\Transactions; |
||
9 | |||
10 | use Application\Transactions\Row; |
||
11 | use Application\Wallets\Table as WalletsTable; |
||
12 | use Bluz\Proxy\Db; |
||
0 ignored issues
–
show
|
|||
13 | |||
14 | /** |
||
15 | * Class Table for `transactions` |
||
16 | * |
||
17 | * @package Application\Transactions |
||
18 | * |
||
19 | * @method static Row create(array $data = []) |
||
20 | * |
||
21 | * @method static Row findRow($primaryKey) |
||
22 | * @see \Bluz\Db\Table::findRow() |
||
23 | * @method static Row findRowWhere($whereList) |
||
24 | * @see \Bluz\Db\Table::findRowWhere() |
||
25 | * |
||
26 | * @author Anton Shevchuk |
||
27 | * @created 2017-10-19 15:21:59 |
||
28 | */ |
||
29 | class Table extends \Bluz\Db\Table |
||
0 ignored issues
–
show
The type
Bluz\Db\Table 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
30 | { |
||
31 | public const TYPE_DEBIT = 'debit'; |
||
32 | public const TYPE_CREDIT = 'credit'; |
||
33 | public const TYPE_BLOCK = 'block'; |
||
34 | public const TYPE_UNBLOCK = 'unblock'; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $name = 'transactions'; |
||
40 | |||
41 | protected $rowClass = Row::class; |
||
42 | |||
43 | /** |
||
44 | * Primary key(s) |
||
45 | * @var array |
||
46 | */ |
||
47 | protected $primary = ['id']; |
||
48 | |||
49 | /** |
||
50 | * init |
||
51 | * |
||
52 | * @return void |
||
53 | */ |
||
54 | public function init(): void |
||
55 | { |
||
56 | $this->linkTo('userId', 'Users', 'id'); |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * getInfo |
||
61 | * |
||
62 | * @param integer $id |
||
63 | * |
||
64 | * @return Row |
||
65 | */ |
||
66 | public static function getInfo($id): ?Row |
||
67 | { |
||
68 | $select = self::select() |
||
69 | ->where('transactions.id = ?', [$id]); |
||
70 | |||
71 | return current($select->execute(Row::class)); |
||
72 | } |
||
73 | } |
||
74 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths