ValueObjectWithToStringImpl   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 1
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
final class ValueObjectWithToStringImpl
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 (string) $this->uuid;
22
    }
23
}
24