Completed
Push — master ( 494025...63e9a9 )
by Joshua
14s queued 11s
created

MissingFieldsException::metaOrAssetNotFound()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the -SeamsCMSDeliverySdk package.
7
 *
8
 * (c) Seams-CMS.com
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace SeamsCMS\Delivery\Exception;
15
16
class MissingFieldsException extends BaseException implements SeamsCMSException
17
{
18 1
    public static function metaNotFound()
19
    {
20 1
        return new self("Field 'meta' not found");
21
    }
22
23 1
    public static function fieldsNotFound()
24
    {
25 1
        return new self("Field 'fields' not found");
26
    }
27
28 3
    public static function metaOrAssetNotFound()
29
    {
30 3
        return new self("Fields 'meta' and/or 'asset' not found");
31
    }
32
}
33