Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Application
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace BrianHenryIE\Strauss\Console;
4
5use BrianHenryIE\Strauss\Console\Commands\Compose;
6use Symfony\Component\Console\Application as BaseApplication;
7
8class Application extends BaseApplication
9{
10    /**
11     * @param string $version
12     */
13    public function __construct(string $version)
14    {
15        parent::__construct('strauss', $version);
16
17        $composeCommand = new Compose();
18        $this->add($composeCommand);
19
20        $this->setDefaultCommand('compose');
21    }
22}