Completed
Push — master ( 835d6a...f13adc )
by William
02:52
created

CircularReference2::getReference1()   A

Complexity

Conditions 1
Paths 1

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 4
Code Lines 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Hateoas\Tests\Fixtures;
4
5
use Hateoas\Configuration\Annotation as Hateoas;
6
use JMS\Serializer\Annotation as Serializer;
7
8
/**
9
 * @Serializer\ExclusionPolicy("all")
10
 *
11
 * @Hateoas\Relation("reference1", embedded="expr(object.getReference1())")
12
 */
13
class CircularReference2
14
{
15
    /**
16
     * @Serializer\Expose
17
     */
18
    private $name = 'reference2';
0 ignored issues
show
Unused Code introduced by Adrien Brault
The property $name is not used and could be removed.

This check marks private properties in classes that are never used.

These properties can be removed.

Loading history...
19
20
    private $reference1;
21
22
    public function setReference1($reference1)
23
    {
24
        $this->reference1 = $reference1;
25
    }
26
27
    public function getReference1()
28
    {
29
        return $this->reference1;
30
    }
31
}
32