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

PathNotArrayException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 4
rs 10
c 1
b 0
f 0
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