Completed
Push — master ( 58ef41...4940a6 )
by Christoph, René
01:52
created

TestLogging::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace RenePardon\GelfSupport\Commands;
4
5
use Exception;
6
use Illuminate\Console\Command;
7
8
/**
9
 * Class TestLogging
10
 *
11
 * @package RenePardon\GelfSupport\Commands
12
 */
13
class TestLogging extends Command
14
{
15
    /**
16
     * The console command name.
17
     *
18
     * @var string
19
     */
20
    protected $name = 'rp:gelf-support:test-logging';
21
22
    /**
23
     * The console command description.
24
     *
25
     * @var string
26
     */
27
    protected $description = 'Throw an exception to test the logging integration';
28
29
    /**
30
     * @throws Exception
31
     */
32
    public function handle()
33
    {
34
        throw new Exception('Test logging exception');
35
    }
36
}
37