Properties::getTable()   A
last analyzed

Complexity

Conditions 3
Paths 4

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
eloc 2
nc 4
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 0
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
}