Table   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
c 1
b 0
f 0
dl 0
loc 43
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 3 1
1
<?php
2
3
/**
4
 * @namespace
5
 */
6
7
namespace Application\UsersPhones;
8
9
/**
10
 * Class Table for `users_phones`
11
 *
12
 * @package  Application\UsersPhones
13
 *
14
 * @author   Anton Shevchuk
15
 * @created  2017-11-21 18:26:26
16
 */
17
class Table extends \Bluz\Db\Table
0 ignored issues
show
Bug introduced by
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...
18
{
19
    /**
20
     * Pending phone verification
21
     */
22
    public const STATUS_PENDING = 'pending';
23
    /**
24
     * Active phone number
25
     */
26
    public const STATUS_ACTIVE = 'active';
27
    /**
28
     * Disabled by administrator or by user
29
     */
30
    public const STATUS_DISABLED = 'disabled';
31
    /**
32
     * Removed by user
33
     */
34
    public const STATUS_DELETED = 'deleted';
35
36
    /**
37
     * @var string
38
     */
39
    protected $name = 'users_phones';
40
41
    /**
42
     * @var string
43
     */
44
    protected $rowClass = Row::class;
45
46
    /**
47
     * Primary key(s)
48
     * @var array
49
     */
50
    protected $primary = ['id'];
51
52
    /**
53
     * Init table relations
54
     *
55
     * @return void
56
     */
57
    public function init(): void
58
    {
59
        $this->linkTo('userId', 'Users', 'id');
60
    }
61
}
62