aggregateRootClassIsNotValid()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 2
b 1
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Chocofamily\LaravelEventSauce\Exceptions;
4
5
use Exception;
6
7
class AggregateRootRepositoryInstanciationFailed extends Exception
8
{
9
    public static function aggregateRootClassDoesNotExist()
10
    {
11
        return new static('You have to set an aggregate root before the repository can be initialized.');
12
    }
13
14
    public static function aggregateRootClassIsNotValid()
15
    {
16
        return new static('Not a valid aggregate root class');
17
    }
18
}
19