EmptyTableException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * @package A simple ORM that performs basic CRUD operations
5
 * @author Surajudeen AKANDE <[email protected]>
6
 * @license MIT <https://opensource.org/licenses/MIT>
7
 * @link http://www.github.com/andela-sakande
8
 * */
9
10
namespace Sirolad\Exceptions;
11
12
use PDOException;
13
14
/**
15
 * Exception class for Empty Table
16
 * */
17
class EmptyTableException extends PDOException
18
{
19
     /**
20
     * constructor class
21
     * */
22
    public function __construct()
23
    {
24
        parent::__construct('The table is empty.');
25
    }
26
27
    /**
28
     * @return string
29
     * */
30
    public function message()
31
    {
32
        return 'Fatal Error: ' . $this->getMessage();
33
    }
34
}
35