Completed
Push — master ( 0d3592...0bb29a )
by Peter
06:28
created

FileAccessException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A notWritable() 0 4 1
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 FileAccessException extends \RuntimeException
13
{
14
    /**
15
     * @param string $filename
16
     *
17
     * @return static
18
     */
19
    final public static function notWritable($filename)
20
    {
21
        return new static(sprintf('File "%s" is not writable.', $filename));
22
    }
23
}
24