TableDoesNotExistException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A message() 0 4 1
1
<?php
2
/**
3
 * @package A simple ORM that performs basic CRUD operations
4
 * @author Surajudeen AKANDE <[email protected]>
5
 * @license MIT <https://opensource.org/licenses/MIT>
6
 * @link http://www.github.com/andela-sakande
7
 * */
8
namespace Sirolad\Exceptions;
9
10
use PDOException;
11
12
/**
13
 * Exception class for Inexistent Table
14
 * */
15
class TableDoesNotExistException extends PDOException
16
{
17
    /**
18
     * constructor class
19
     * */
20
    public function __construct()
21
    {
22
        parent::__construct('This table does not exist.');
23
    }
24
25
    /**
26
     * @return string
27
     * */
28
    public function message()
29
    {
30
        return 'Fatal Error: ' . $this->getMessage();
31
    }
32
}
33