SizeOverflowException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A withLimit() 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 SizeOverflowException extends OverflowException
13
{
14
    /**
15
     * @param int $byte_limit
16
     *
17
     * @return static
18
     */
19 5
    final public static function withLimit($byte_limit)
20
    {
21 5
        return new static(sprintf('The limit of %d byte in the sitemap.xml was exceeded.', $byte_limit));
22
    }
23
}
24