Completed
Push — master ( 0a4926...d192d3 )
by Jan Philipp
24s queued 11s
created

ScriptNotFound   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setScriptName() 0 6 1
A getScriptName() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Psh\Listing;
4
5
use RuntimeException;
6
7
/**
8
 * Special exception to enable a nice error message from the app
9
 */
10
class ScriptNotFound extends RuntimeException
11
{
12
    /**
13
     * @var string
14
     */
15
    private $scriptName;
16
17
    public function setScriptName(string $scriptName): self
18
    {
19
        $this->scriptName = $scriptName;
20
21
        return $this;
22
    }
23
24
    public function getScriptName(): string
25
    {
26
        return $this->scriptName;
27
    }
28
}
29