Passed
Push — main ( 3cafac...84621c )
by Gabriel
01:57
created

ObjectWithGetSet   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 35
rs 10
c 1
b 0
f 0
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
namespace ByTIC\DataObjects\Tests\Fixtures\Dto;
4
5
use ByTIC\DataObjects\BaseDto;
6
7
/**
8
 * Class ObjectWithGetSet
9
 * @package ByTIC\DataObjects\Tests\Fixtures\Dto
10
 *
11
 * @property string $name
12
 */
13
class ObjectWithGetSet extends BaseDto
14
{
15
    protected $title;
16
17
    /**
18
     * @return mixed
19
     */
20
    public function getName()
21
    {
22
        return $this->name;
23
    }
24
25
    /**
26
     * @param $value
27
     * @return mixed
28
     */
29
    public function setName($value)
30
    {
31
        return $this->name = $value;
32
    }
33
34
    /**
35
     * @return mixed
36
     */
37
    public function getTitle()
38
    {
39
        return $this->title;
40
    }
41
42
    /**
43
     * @param mixed $title
44
     */
45
    public function setTitle($title): void
46
    {
47
        $this->title = $title;
48
    }
49
50
}
51