Passed
Push — master ( b8ac87...e44da5 )
by Eric
03:40 queued 01:13
created

FailedToGetFileContentsException::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of PHPUnit Coverage Check.
7
 *
8
 * (c) Eric Sizemore <[email protected]>
9
 * (c) Richard Regeer <[email protected]>
10
 *
11
 * This source file is subject to the MIT license. For the full copyright,
12
 * license information, and credits/acknowledgements, please view the LICENSE
13
 * and README files that were distributed with this source code.
14
 */
15
16
namespace Esi\CoverageCheck\Exceptions;
17
18
use RuntimeException;
19
20
/**
21
 * @codeCoverageIgnore
22
 */
23
final class FailedToGetFileContentsException extends RuntimeException
24
{
25
    public static function create(string $cloverFile): self
26
    {
27
        return new self(\sprintf('Failed to get the contents of %s', $cloverFile));
28
    }
29
}
30