Resource   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 30
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Auth\Model;
4
5
use Drone\Db\Entity;
6
7
class Resource extends Entity
8
{
9
	/**
10
	 * @var integer
11
	 */
12
    public $RESOURCE_ID;
13
14
	/**
15
	 * @var string
16
	 */
17
    public $RESOURCE_NAME;
18
19
	/**
20
	 * @var string
21
	 */
22
    public $STATE;
23
24
	/**
25
	 * @var date
0 ignored issues
show
Bug introduced by
The type Auth\Model\date 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...
26
	 */
27
    public $RECORD_DATE;
28
29
    public function __construct($data = [])
30
    {
31
    	parent::__construct($data);
32
33
		$config = include 'module/Auth/config/user.config.php';
34
		$prefix = $config["database"]["prefix"];
35
36
        $this->setTableName($prefix . "_" . "RESOURCE");
37
    }
38
}