TimeoutException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 31
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A output() 0 4 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