Completed
Push — test ( d49b33...eefe29 )
by Temitope
02:38
created

reportUnknownTableField()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
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 reportUnknownTableField($unExpectedFields, $message)
16
	{
17
		$fields = implode(", ",$unExpectedFields);
18
19
		//var_dump($fields);
20
21
		return new static($fields." ".$message);
22
	}
23
24
}