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

SampleController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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