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.

subjectIsNotAnObject()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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
/**
15
 * Subject id retrieving faults exception
16
 */
17
class SubjectIdRetrievingException extends SubjectManipulatorException implements WorkflowExceptionInterface
18
{
19
    /**
20
     * Creates exception instance in case of configuration is not found for subject
21
     *
22
     * @param string $subjectClass subject class
23
     *
24
     * @return static
25
     */
26
    public static function expressionNotFound($subjectClass)
27
    {
28
        return new static(sprintf('Cannot find expression for retrieving subject id for class "%s"', $subjectClass));
29
    }
30
31
    /**
32
     * Creates exception instance in case of subject specified is not an object
33
     *
34
     * @param mixed $subject subject
35
     *
36
     * @return static
37
     */
38
    public static function subjectIsNotAnObject($subject)
39
    {
40
        return new static(sprintf('Subject manipulator cannot operate with non-object subjects. "%s" given', gettype($subject)));
41
    }
42
}