Completed
Push — master ( 2e5350...f0c5b4 )
by Tobias
10:07
created

Car::setModel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Happyr\SerializerBundle\Tests\Fixtures\Accessor;
4
5
use Happyr\SerializerBundle\Annotation as Serializer;
6
7
class Car
8
{
9
    /**
10
     * @Serializer\Accessor({"getter":"getModel", "setter":"setModel"})
11
     */
12
    private $model = 'defaultValue';
13
14
    /**
15
     * @return mixed
16
     */
17
    public function getModel()
18
    {
19
        return 'getModel';
20
    }
21
22
    /**
23
     * @param mixed $model
24
     *
25
     * @return Car
26
     */
27
    public function setModel($model)
28
    {
29
        $this->model = $model.'_setter';
30
31
        return $this;
32
    }
33
}
34