Completed
Pull Request — master (#4)
by Jérémy
02:00
created

RuntimeException::noReaderRegisteredException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
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