Completed
Pull Request — master (#17)
by Peter
03:02
created

IndexStreamException::failedRename()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
1
<?php
2
/**
3
 * GpsLab component.
4
 *
5
 * @author    Peter Gribanov <[email protected]>
6
 * @copyright Copyright (c) 2011, Peter Gribanov
7
 * @license   http://opensource.org/licenses/MIT
8
 */
9
10
namespace GpsLab\Component\Sitemap\Stream\Exception;
11
12
class IndexStreamException extends \RuntimeException
13
{
14
    /**
15
     * @param string $source
16
     * @param string $target
17
     *
18
     * @return self
19
     */
20
    public static function failedRename($source, $target)
21
    {
22
        return new self(sprintf('Failed rename sitemap file "%s" to "%s".', $source, $target));
23
    }
24
}
25