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

ObjectWithGetSet::getTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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