ObjectWithGetSet   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 36
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A setTitle() 0 3 1
A setName() 0 3 1
A getTitle() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ByTIC\DataObjects\Tests\Fixtures\Dto;
6
7
use ByTIC\DataObjects\BaseDto;
8
9
/**
10
 * Class ObjectWithGetSet
11
 * @package ByTIC\DataObjects\Tests\Fixtures\Dto
12
 *
13
 * @property string $name
14
 */
15
class ObjectWithGetSet extends BaseDto
16
{
17
    protected $title;
18
    protected $name;
19
20
    /**
21
     * @return mixed
22
     */
23
    public function getName()
24
    {
25
        return $this->name;
26
    }
27
28
    /**
29
     * @param $value
30
     * @return mixed
31
     */
32
    public function setName($value)
33
    {
34
        return $this->name = $value;
35
    }
36
37
    /**
38
     * @return mixed
39
     */
40
    public function getTitle()
41
    {
42
        return $this->title;
43
    }
44
45
    /**
46
     * @param mixed $title
47
     */
48
    public function setTitle($title): void
49
    {
50
        $this->title = $title;
51
    }
52
}
53