| Total Complexity | 8 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 55.56% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | trait RecordsTrait |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var null|string |
||
| 13 | */ |
||
| 14 | protected $primaryKey = null; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | 20 | public function getPrimaryKey() |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param null|string $primaryKey |
||
| 30 | */ |
||
| 31 | 18 | public function setPrimaryKey($primaryKey) |
|
| 32 | { |
||
| 33 | 18 | $this->primaryKey = $primaryKey; |
|
| 34 | 18 | } |
|
| 35 | |||
| 36 | 3 | protected function initPrimaryKey() |
|
| 39 | 3 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function generatePrimaryKey() |
||
| 56 | } |
||
| 57 | } |
||
| 58 |