Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
50.00% covered (warning)
50.00%
1 / 2
CRAP
75.00% covered (success)
75.00%
3 / 4
DockerException
0.00% covered (danger)
0.00%
0 / 1
50.00% covered (warning)
50.00%
1 / 2
2.06
75.00% covered (success)
75.00%
3 / 4
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 getScheduleInfos
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
1<?php
2
3namespace Qmp\Laravel\DockerLauncher\Exceptions;
4use Exception;
5
6class DockerException extends Exception
7{
8    /**
9     * @var array
10     */
11    private $scheduleInfos = [];
12
13    /**
14     * DockerException constructor.
15     * @param string $message
16     * @param array $scheduleInfos
17     */
18    public function __construct($message, array $scheduleInfos)
19    {
20        $this->scheduleInfos = $scheduleInfos;
21        parent::__construct($message);
22    }
23
24    /**
25     * @return array
26     */
27    public function getScheduleInfos()
28    {
29        return $this->scheduleInfos;
30    }
31
32}