Completed
Push — master ( 30f4d3...51e609 )
by Jérémy
02:05
created

RuntimeException::noRendererRegisteredException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace JDecool\JsonFeed\Exceptions;
4
5
use Exception;
6
7
class RuntimeException extends Exception
8
{
9
    /**
10
     * @param string $version
11
     * @return RuntimeException
12
     */
13
    public static function noReaderRegisteredException($version)
14
    {
15
        return new self(sprintf('No reader registered for version "%s"', $version));
16
    }
17
18
    /**
19
     * @param string $version
20
     * @return RuntimeException
21
     */
22
    public static function noRendererRegisteredException($version)
23
    {
24
        return new self(sprintf('No renderer registered for version "%s"', $version));
25
    }
26
}
27