TableDoesNotExistException::message()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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