Completed
Pull Request — 3.x (#547)
by Jeroen
02:34
created

NonIntegerIdentifierTestClass   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
A toString() 0 4 1
1
<?php
2
3
namespace Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Util;
4
5
/**
6
 * This class is used in the ModelManagerTest suite to test non integer/string identifiers
7
 *
8
 * @author Jeroen Thora <[email protected]>
9
 */
10
class NonIntegerIdentifierTestClass
11
{
12
    /**
13
     * @var string
14
     */
15
    private $uuid;
16
17
    /**
18
     * @param string $uuid
19
     */
20
    public function __construct($uuid)
21
    {
22
        $this->uuid = $uuid;
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function __toString()
29
    {
30
        return $this->toString();
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function toString()
37
    {
38
        return $this->uuid;
39
    }
40
}
41