Completed
Pull Request — master (#111)
by Jan Philipp
02:46 queued 41s
created

ScriptNotFound::getScriptName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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