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

Car::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 7
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 7
loc 7
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
namespace Happyr\SerializerBundle\Tests\Fixtures\ReadOnly;
4
5
use Happyr\SerializerBundle\Annotation as Serializer;
6
7
class Car
8
{
9
    /**
10
     * @Serializer\ReadOnly()
11
     */
12
    private $model;
13
14
    private $size;
15
16
    public function __construct($withValues = false)
17
    {
18
        if ($withValues) {
19
            $this->model = 'val_model';
20
            $this->size = 'val_size';
21
        }
22
    }
23
}
24