Completed
Push — master ( f65d8f...4f3de5 )
by Pavel
04:14 queued 01:54
created

SampleController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A actionIndex() 0 6 1
1
<?php
2
namespace App\Commands;
3
4
final class SampleController
5
{
6
    private $args;
7
8
    public function __construct($args)
9
    {
10
        $this->args = $args;
11
    }
12
13
    public function actionIndex()
14
    {
15
        echo 'This is sample console command.' . PHP_EOL;
16
        echo 'Actions: ' . PHP_EOL;
17
        echo 'partisan sample index' . PHP_EOL;
18
    }
19
}
20