Properties   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 14
rs 10
c 1
b 0
f 0
wmc 7

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPrimary() 0 4 3
A find() 0 1 1
A getTable() 0 4 3
1
<?php
2
3
namespace SimplePHP\Traits;
4
5
trait Properties {
6
    public function getTable()
7
    {
8
        return isset($this->table) && gettype($this->table) == 'string'
9
            ? $this->table : null;
10
    }
11
12
    public function getPrimary()
13
    {
14
        return isset($this->primaryKey) && gettype($this->primaryKey) == 'string'
15
            ? $this->primaryKey : null;
16
    }
17
18
    public static function find() {
19
        
20
    }
21
}