Completed
Push — test ( 3dfb92...e682d1 )
by Temitope
02:44
created

TableFieldUndefinedException::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 7
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
/**
4
 * @package  Laztopaz\potato-ORM
5
 * @author   Temitope Olotin <[email protected]>
6
 * @license  <https://opensource.org/license/MIT> MIT
7
 */
8
9
namespace Laztopaz\potatoORM;
10
11
use Exception;
12
13
class TableFieldUndefinedException extends Exception {
14
15
    public static function create($unExpectedFields, $message)
16
    {
17
        $fields = implode(", ", $unExpectedFields);
18
19
        return new static($fields." ".$message);
20
        
21
    }
22
23
}