FailedAcknowledgementException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
/**
4
 * This file is part of graze/queue.
5
 *
6
 * Copyright (c) 2015 Nature Delivered Ltd. <https://www.graze.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * @license https://github.com/graze/queue/blob/master/LICENSE MIT
12
 *
13
 * @link    https://github.com/graze/queue
14
 */
15
16
namespace Graze\Queue\Adapter\Exception;
17
18
use Exception;
19
use Graze\Queue\Adapter\AdapterInterface;
20
use Graze\Queue\Message\MessageInterface;
21
22
/**
23
 * Exception to throw when a {@see \Graze\Queue\Handler} is unable to acknowledge a message.
24
 */
25
class FailedAcknowledgementException extends AdapterException
26
{
27
    /**
28
     * @param AdapterInterface   $adapter
29
     * @param MessageInterface[] $messages
30
     * @param array              $debug
31
     * @param Exception          $previous
32
     */
33 6
    public function __construct(
34
        AdapterInterface $adapter,
35
        array $messages,
36
        array $debug = [],
37
        Exception $previous = null
38
    ) {
39 6
        parent::__construct('Failed to acknowledge messages', $adapter, $messages, $debug, $previous);
40 6
    }
41
}
42