Completed
Push — develop ( c96724...2e3f1f )
by Faiz
02:59
created

SurahCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 12 1
A execute() 0 4 1
1
<?php
2
3
namespace FaizShukri\Quran\Commands;
4
5
use Symfony\Component\Console\Command\Command;
6
use Symfony\Component\Console\Input\InputArgument;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
class SurahCommand extends Command
11
{
12
    protected function configure()
13
    {
14
        $this
15
            ->setName('surah')
16
            ->setDescription('Retrieve surah')
17
            ->addArgument(
18
                'index',
19
                InputArgument::OPTIONAL,
20
                'Surah index'
21
            )
22
        ;
23
    }
24
25
    protected function execute(InputInterface $input, OutputInterface $output)
26
    {
27
28
    }
29
}
30