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

InstallerException::cannotFindComposerLock()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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