ObjectWithGetSet::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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