AggregateException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 28
c 1
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getExceptions() 0 4 1
1
<?php
2
3
namespace BigFileTools\Driver;
4
5
class AggregateException extends Exception
6
{
7
	/**
8
	 * @var Exception[]
9
	 */
10
	public $exceptions;
11
12
	/**
13
	 * AggregateException constructor.
14
	 * @param string $message
15
	 * @param int $code
16
	 * @param Exception[] $exceptions
17
	 */
18
	public function __construct($message, $code, array $exceptions)
19
	{
20
		parent::__construct($message, $code, end($exceptions));
21
		reset($exceptions);
22
		$this->exceptions = $exceptions;
23
	}
24
25
	/**
26
	 * @return Exception[]
27
	 */
28
	public function getExceptions()
29
	{
30
		return $this->exceptions;
31
	}
32
}