Passed
Push — trunk ( aca09f...bd7f95 )
by Christian
14:04 queued 13s
created

InstallerException   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A cannotFindComposerLock() 0 3 1
A cannotFindShopwareInComposerLock() 0 3 1
A cannotFindShopwareInstallation() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\WebInstaller;
4
5
use Shopware\Core\Framework\Log\Package;
6
7
/**
8
 * @internal
9
 */
10
#[Package('core')]
11
class InstallerException extends \RuntimeException
12
{
13
    public static function cannotFindShopwareInstallation(): self
14
    {
15
        return new self('Could not find Shopware installation');
16
    }
17
18
    public static function cannotFindComposerLock(): self
19
    {
20
        return new self('Could not find composer.lock file');
21
    }
22
23
    public static function cannotFindShopwareInComposerLock(): self
24
    {
25
        return new self('Could not find Shopware in composer.lock file');
26
    }
27
}
28