Completed
Push — master ( 791c20...d90c8e )
by Pierre
03:16
created

Users::_construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 1
dl 0
loc 7
ccs 0
cts 6
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Model\Repository;
4
5
use App\Component\Model\Orm\Orm;
0 ignored issues
show
Bug introduced by
The type App\Component\Model\Orm\Orm 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...
6
7
class Users extends Orm
8
{
9
10
    /**
11
     * table name
12
     * @var string
13
     */
14
    protected $tablename;
15
16
    /**
17
     * table primary key
18
     * @var string
19
     */
20
    protected $primary;
21
22
    /**
23
     * table name
24
     * @var string
25
     */
26
    protected $dbname;
27
28
    /**
29
     * pool name
30
     * @var string
31
     */
32
    protected $poolname;
33
34
    /**
35
     * instanciate
36
     *
37
     * @param \App\Container $container
38
     * @return self
39
     */
40
    public function _construct(\App\Container $container)
41
    {
42
        $this->tablename = 'users';
43
        $this->primary = 'id';
44
        $this->dbname = 'test';
45
        $this->poolname = 'testMysql';
46
        parent::__construct($container);
47
    }
48
}
49