Completed
Push — master ( 2fcac9...1c95f8 )
by Filipe
11:52
created

CreateController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 41
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
/**
4
 * This file is part of slick/mvc package
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Slick\Mvc\Console\Command\Task;
11
12
use Slick\Common\Base;
13
14
/**
15
 * Class CreateController
16
 *
17
 * @package Slick\Mvc\Console\Command\Task
18
 * @author  Filipe Silva <[email protected]>
19
 *
20
 * @property string $modelName
21
 * @property string $path
22
 *
23
 * @method bool isScaffold()
24
 */
25
class CreateController extends Base
26
{
27
28
    /**
29
     * @readwrite
30
     * @var string
31
     */
32
    protected $modelName;
33
34
    /**
35
     * @readwrite
36
     * @var string
37
     */
38
    protected $path;
39
40
    /**
41
     * @readwrite
42
     * @var bool
43
     */
44
    protected $scaffold = false;
45
46
    /**
47
     * @readwrite
48
     * @var string
49
     */
50
    protected $output = 'Controller';
51
52
    /**
53
     * Create Controller command
54
     *
55
     * @param string       $modelName
56
     * @param array|object $options
57
     */
58
    public function __construct($modelName, $options = [])
59
    {
60
        $this->modelName = $modelName;
61
        parent::__construct($options);
62
    }
63
64
65
}