Passed
Push — master ( 5f88dd...10f6bc )
by Smoren
12:50
created

PathNotArrayException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 9
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Smoren\Schemator\Exceptions;
4
5
class PathNotArrayException extends PathException
6
{
7
    /**
8
     * {@inheritDoc}
9
     */
10
    public function __construct(string $key, array $path, string $pathDelimiter)
11
    {
12
        parent::__construct($key, $path, $pathDelimiter);
13
        $this->message = "Value by key '{$this->key}' is not an array on path '{$this->getPathString()}'";
14
    }
15
}
16