Completed
Push — master ( ca07cd...7e6526 )
by Greg
9s
created

UnknownFieldException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace Consolidation\OutputFormatters\Exception;
3
4
/**
5
 * Indicates that the requested format does not exist.
6
 */
7
class UnknownFieldException extends \Exception
8
{
9
    public function __construct($field)
10
    {
11
        $message = "The requested field, '$field', is not defined.";
12
        parent::__construct($message, 1);
13
    }
14
}
15