Issues (400)

application/models/Users/Table.php (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * @copyright Bluz PHP Team
5
 * @link      https://github.com/bluzphp/skeleton
6
 */
7
8
declare(strict_types=1);
9
10
namespace Application\Users;
11
12
/**
13
 * Table of Users
14
 *
15
 * @package  Application\Users
16
 *
17
 * @method   static Row|null findRow($primaryKey)
18
 * @see      \Bluz\Db\Table::findRow()
19
 * @method   static Row|null findRowWhere($whereList)
20
 * @see      \Bluz\Db\Table::findRowWhere()
21
 */
22
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. 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...
23
{
24
    /**
25
     * Pending email verification
26
     */
27
    public const STATUS_PENDING = 'pending';
28
    /**
29
     * Active user
30
     */
31
    public const STATUS_ACTIVE = 'active';
32
    /**
33
     * Disabled by administrator
34
     */
35
    public const STATUS_DISABLED = 'disabled';
36
    /**
37
     * Removed account
38
     */
39
    public const STATUS_DELETED = 'deleted';
40
    /**
41
     * system user with ID=1
42
     */
43
    public const SYSTEM_USER = 1;
44
45
    /**
46
     * Table
47
     *
48
     * @var string
49
     */
50
    protected $name = 'users';
51
52
    /**
53
     * Primary key(s)
54
     *
55
     * @var array
56
     */
57
    protected $primary = ['id'];
58
59
    /**
60
     * Init table relations
61
     *
62
     * @return void
63 1
     */
64
    public function init(): void
65 1
    {
66 1
        $this->linkTo('id', 'UsersRoles', 'userId');
67 1
        $this->linkToMany('Roles', 'UsersRoles');
68
    }
69
}
70