Completed
Push — master ( 9c5329...c1e646 )
by Freek
01:18
created

HasDefaultUuidFields   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A HasUuidPrimaryKey::getKeyName() 0 4 1
A HasUuidPrimaryKey::getIncrementing() 0 4 1
1
<?php
2
3
namespace Spatie\BinaryUuid;
4
5
trait HasUuidPrimaryKey
6
{
7
    public function getKeyName()
8
    {
9
        return 'uuid';
10
    }
11
12
    public function getIncrementing()
13
    {
14
        return false;
15
    }
16
}
17