Completed
Pull Request — master (#1984)
by Maciej
21:32
created

HydratorException::hydratorDirectoryNotWritable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\ODM\MongoDB\Hydrator;
6
7
use Doctrine\ODM\MongoDB\MongoDBException;
8
9
/**
10
 * MongoDB ODM Hydrator Exception
11
 */
12
final class HydratorException extends MongoDBException
13
{
14
    public static function hydratorDirectoryNotWritable() : self
15
    {
16
        return new self('Your hydrator directory must be writable.');
17
    }
18
19
    public static function hydratorDirectoryRequired() : self
20
    {
21
        return new self('You must configure a hydrator directory. See docs for details.');
22
    }
23
24
    public static function hydratorNamespaceRequired() : self
25
    {
26
        return new self('You must configure a hydrator namespace. See docs for details');
27
    }
28
}
29