Completed
Pull Request — master (#86)
by Jan Philipp
01:42
created

ScriptNotFoundException::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
4
namespace Shopware\Psh\Listing;
5
6
/**
7
 * Special exception to enable a nice error message from the app
8
 */
9
class ScriptNotFoundException extends \RuntimeException
10
{
11
    /**
12
     * @var string
13
     */
14
    private $scriptName;
15
16
    /**
17
     * @param string $scriptName
18
     *
19
     * @return self
20
     */
21
    public function setScriptName(string $scriptName): self
22
    {
23
        $this->scriptName = $scriptName;
24
25
        return $this;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getScriptName(): string
32
    {
33
        return $this->scriptName;
34
    }
35
}
36