CreatePostCommand   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 56
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A title() 0 4 1
A setTitle() 0 4 1
A content() 0 4 1
A setContent() 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\Console\Command\ConsoleCommand;
13
14
/**
15
 * CreatePostCommand class.
16
 *
17
 * @author Ivannis Suárez Jerez <[email protected]>
18
 */
19
class CreatePostCommand extends ConsoleCommand
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $title;
25
26
    /**
27
     * @var string
28
     */
29
    protected $content;
30
31
    /**
32
     * CreatePostCommand constructor.
33
     *
34
     * @param string $title
35
     * @param string $content
36
     */
37
    public function __construct($title, $content = null)
38
    {
39
        $this->title = $title;
40
        $this->content = $content;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function title()
47
    {
48
        return $this->title;
49
    }
50
51
    /**
52
     * @param string $title
53
     */
54
    public function setTitle($title)
55
    {
56
        $this->title = $title;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function content()
63
    {
64
        return $this->content;
65
    }
66
67
    /**
68
     * @param string $content
69
     */
70
    public function setContent($content)
71
    {
72
        $this->content = $content;
73
    }
74
}
75