Completed
Branch master (58a10f)
by Timothy
02:24
created

Application::factory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Abacaphiliac\Compliments;
4
5
class Application extends \Symfony\Component\Console\Application
6
{
7
    /**
8
     * @return static
9
     * @throws \Symfony\Component\Console\Exception\LogicException
10
     */
11
    public static function factory()
12
    {
13
        $application = new static();
14
        $application->add(new RandomComplimentCommand());
15
        
16
        return $application;
17
    }
18
}
19