Completed
Pull Request — master (#29)
by Tom
03:21 queued 01:05
created

NoMatchingFilesException::fromPatterns()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 5
nc 1
nop 1
1
<?php
2
3
namespace TomPHP\ConfigServiceProvider\Exception;
4
5
final class NoMatchingFilesException extends \LogicException implements Exception
6
{
7
    use ExceptionFactory;
8
9
    /**
10
     * @param array $patterns
11
     *
12
     * @return self
13
     */
14
    public static function fromPatterns(array $patterns)
15
    {
16
        $patterns = '"' . implode('", "', $patterns) . '"';
17
18
        return self::create(
19
            'No files found matching patterns: [%s].',
20
            $patterns
21
        );
22
    }
23
}
24