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

ScriptNotFound::setScriptName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

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