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.
Completed
Push — master ( bf89ff...ccb5b0 )
by Alex
07:41
created

NonUniqueReschedulabeJobFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 14 1
1
<?php
2
/**
3
 * This file is part of the Global Trading Technologies Ltd workflow-extension-bundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * (c) fduch <[email protected]>
9
 * @date 03.08.16
10
 */
11
12
namespace Gtt\Bundle\WorkflowExtensionsBundle\Exception;
13
14
use Exception;
15
use JMS\JobQueueBundle\Entity\Job;
16
17
/**
18
 * Exception for cases whe several reschedulable jobs for workflow transition and subject found
19
 */
20
class NonUniqueReschedulabeJobFoundException extends \RuntimeException implements WorkflowExceptionInterface
21
{
22
    /**
23
     * NonUniqueReschedulabeJobFoundException constructor
24
     *
25
     * @param string         $workflowName   workflow name
26
     * @param string         $transitionName transition name
27
     * @param string         $subjectClass   subject class
28
     * @param string         $subjectId      subject id
29
     * @param array          $jobIds         list of ids of reschedulable jms jobs
30
     * @param int            $code           exception code
31
     * @param Exception|null $previous       previous exception
32
     */
33
    public function __construct($workflowName, $transitionName, $subjectClass, $subjectId, array $jobIds, $code = 0, Exception $previous = null)
34
    {
35
        $message = sprintf(
36
            "There are several scheduled '%s' instances (id's: '%s') available for rescheduling found for transition '%s' (workflow '%s') and ".
37
            "subject class '%s' and subject id '%s'",
38
            Job::class,
39
            implode(", ", $jobIds),
40
            $transitionName,
41
            $workflowName,
42
            $subjectClass,
43
            $subjectId
44
        );
45
        parent::__construct($message, $code, $previous);
46
    }
47
}