GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

StepNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
3
/**
4
 * Workflow library.
5
 *
6
 * @package    workflow
7
 * @author     David Molineus <[email protected]>
8
 * @copyright  2014-2017 netzmacht David Molineus
9
 * @license    LGPL 3.0 https://github.com/netzmacht/workflow
10
 * @filesource
11
 */
12
13
declare(strict_types=1);
14
15
namespace Netzmacht\Workflow\Flow\Exception;
16
17
use Exception;
18
19
/**
20
 * Class StepNotFoundException is thrown when step is not found.
21
 *
22
 * @package Netzmacht\Workflow\Flow\Exception
23
 */
24
class StepNotFoundException extends FlowException
25
{
26
    /**
27
     * Construct.
28
     *
29
     * @param string    $stepName     The step name which is not found.
30
     * @param string    $workflowName Current workflow name.
31
     * @param int       $code         Error code.
32
     * @param Exception $previous     Previous thrown exception.
33
     */
34
    public function __construct(string $stepName, string $workflowName, int $code = 0, Exception $previous = null)
35
    {
36
        parent::__construct(
37
            sprintf('Step "%s" is not part of workflow "%s"', $stepName, $workflowName),
38
            $code,
39
            $previous
40
        );
41
    }
42
}
43