Completed
Push — master ( 189bb6...0d32b3 )
by Matthew
03:08
created

UuidAwareTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUuidDriver() 0 4 1
A getUuidDriver() 0 4 1
1
<?php
2
3
namespace Ps2alerts\Api\Contract;
4
5
use Ramsey\Uuid\Uuid;
6
7
trait UuidAwareTrait
8
{
9
    /**
10
     * @var \Ramsey\Uuid\Uuid
11
     */
12
    protected $uuid;
13
14
    /**
15
     * Set the Uuid driver
16
     *
17
     * @param \Ramsey\Uuid\Uuid $uuid
18
     */
19
    public function setUuidDriver(Uuid $uuid)
20
    {
21
        $this->uuid = $uuid;
22
    }
23
24
    /**
25
     * Get the Uuid driver
26
     *
27
     * @return \Ramsey\Uuid\Uuid
28
     */
29
    public function getUuidDriver()
30
    {
31
        return $this->uuid;
32
    }
33
}
34