Completed
Push — master ( d17d72...1ce681 )
by Mario
03:24
created

InvalidArgumentException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 13
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Marek\Toggable\API\Exception;
4
5
/**
6
 * Class InvalidArgumentException
7
 * @package Marek\Toggable\API\Exception
8
 */
9
class InvalidArgumentException extends \InvalidArgumentException
10
{
11
    /**
12
     * InvalidArgumentException constructor.
13
     *
14
     * @param string $property
15
     * @param string $class
16
     */
17 2
    public function __construct($property, $class)
18
    {
19 2
        $this->message = sprintf('$%s argument not provided in %s', $property, $class);
20 2
    }
21
}
22