Test Failed
Pull Request — master (#58)
by Dmitriy
02:36
created

InvalidGeneratorCommandException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getResult() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Gii\Exception;
6
7
use Exception;
8
use Yiisoft\FriendlyException\FriendlyExceptionInterface;
9
use Yiisoft\Validator\Result;
10
11
final class InvalidGeneratorCommandException extends Exception
12
{
13
    public function __construct(private Result $result)
14
    {
15
        parent::__construct('Invalid generator data.');
16
    }
17
18
    public function getResult(): Result
19
    {
20
        return $this->result;
21
    }
22
}
23