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

NonIntegerIdentifierTestClass::__construct()   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 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