Passed
Pull Request — master (#53)
by Alexander
23:13 queued 06:44
created

SchemaNotReadException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Cycle\Exception;
6
7
use RuntimeException;
8
use Yiisoft\FriendlyException\FriendlyExceptionInterface;
9
10
class SchemaNotReadException extends RuntimeException implements FriendlyExceptionInterface
11
{
12
    public function __construct()
13
    {
14
        parent::__construct('Cycle Schema not read.');
15
    }
16
    public function getName(): string
17
    {
18
        return 'Current Schema for Cycle ORM has not been read';
19
    }
20
    public function getSolution(): ?string
21
    {
22
        return 'If you are using the SchemaManager to get the Schema, make sure it is configured correctly.';
23
    }
24
}
25