TimeoutException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace TestMonitor\ActiveCampaign\Exceptions;
4
5
use Exception;
6
7
class TimeoutException extends Exception
8
{
9
    /**
10
     * The output returned from the operation.
11
     *
12
     * @var array
13
     */
14
    public $output;
15
16
    /**
17
     * Create a new exception instance.
18
     *
19
     * @param $output
20
     */
21
    public function __construct($output)
22
    {
23
        parent::__construct('Script timed out while waiting for the process to complete.');
24
25
        $this->output = $output;
26
    }
27
28
    /**
29
     * The output returned from the operation.
30
     *
31
     * @return array
32
     */
33
    public function output()
34
    {
35
        return $this->output;
36
    }
37
}
38