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

ScriptNotFoundException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 27
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
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