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

RuntimeException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A noReaderRegisteredException() 0 4 1
A noRendererRegisteredException() 0 4 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