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 ( 0edef5...fd3de2 )
by Nicholas
03:23
created

ScriptNotFoundException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 27
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getScript() 0 4 1
A withScript() 0 7 1
1
<?php
2
3
namespace UCD\Unicode\Character\Repository;
4
5
use UCD\Exception;
6
use UCD\Unicode\Character\Properties\General\Script;
7
8
class ScriptNotFoundException extends Exception
9
{
10
    /**
11
     * @var Script
12
     */
13
    protected $script;
14
15
    /**
16
     * @return Script
17
     */
18
    public function getScript()
19
    {
20
        return $this->script;
21
    }
22
23
    /**
24
     * @param Script $script
25
     * @return self
26
     */
27
    public static function withScript(Script $script)
28
    {
29
        $exception = new self();
30
        $exception->script = $script;
31
32
        return $exception;
33
    }
34
}