InvalidResourceException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * This file contains the HttpException
5
 *
6
 * @copyright 2015 Vladimir Jimenez
7
 * @license   https://github.com/allejo/PhpSoda/blob/master/LICENSE.md MIT
8
 */
9
10
namespace allejo\Socrata\Exceptions;
11
12
/**
13
 * An exception thrown if a given dataset's resource ID is invalid
14
 *
15
 * @package allejo\Socrata\Exceptions
16
 * @since   0.1.0
17
 */
18
class InvalidResourceException extends \Exception
19
{
20
    /**
21
     * Create an exception
22
     *
23
     * @param string $message The message of the exception
24
     *
25
     * @since 0.1.0
26
     */
27
    public function __construct ($message)
28
    {
29
        $this->message = $message;
30
    }
31
}
32