Completed
Pull Request — 3.x (#937)
by Oleg
12:53
created

Uuid   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
namespace Sonata\DoctrineORMAdminBundle\Tests\Fixtures\DoctrineType;
4
5
class Uuid
6
{
7
    private $uuid;
8
9
    public function __construct($uuid)
10
    {
11
        $this->uuid = $uuid;
12
    }
13
14
    public function getValue()
15
    {
16
        return (string) $this;
17
    }
18
19
    public function __toString()
20
    {
21
        return $this->uuid;
22
    }
23
}
24