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   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
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