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

UuidAwareTrait::setUuidDriver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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