MissingRequiredAttribute   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace TPG\Pcflib\Exceptions;
4
5
class MissingRequiredAttribute extends \Exception
6
{
7
8
    /**
9
     * MissingRequiredAttribute constructor.
10
     */
11
    public function __construct(string $attribute)
12
    {
13
        $message = 'Required attribute ' . $attribute . ' is missing';
14
15
        parent::__construct($message);
16
    }
17
}