ChangePostTitleCommand   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 33
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A title() 0 4 1
A setTitle() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Cubiche\Core\Console\Tests\Fixtures\Command;
11
12
use Cubiche\Core\Cqrs\Command\CommandInterface;
13
14
/**
15
 * ChangePostTitleCommand class.
16
 *
17
 * @author Ivannis Suárez Jerez <[email protected]>
18
 */
19
class ChangePostTitleCommand implements CommandInterface
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $title;
25
26
    /**
27
     * ChangePostTitleCommand constructor.
28
     *
29
     * @param string $title
30
     */
31
    public function __construct($title)
32
    {
33
        $this->title = $title;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function title()
40
    {
41
        return $this->title;
42
    }
43
44
    /**
45
     * @param string $title
46
     */
47
    public function setTitle($title)
48
    {
49
        $this->title = $title;
50
    }
51
}
52