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 ( 3684b5...a74bc8 )
by Sergey
03:58
created

Resource   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/*
3
 * This file is part of the reva2/jsonapi.
4
 *
5
 * (c) Sergey Revenko <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Reva2\JsonApi\Annotations;
12
13
/**
14
 * JSON API Resource
15
 *
16
 * @package Reva2\JsonApi\Annotations
17
 * @author Sergey Revenko <[email protected]>
18
 *
19
 * @Annotation
20
 * @Target({"CLASS"})
21
 */
22
class Resource
23
{
24
    /**
25
     * @var string
26
     */
27
    public $name;
28
29
    /**
30
     * Constructor
31
     *
32
     * @param string $name
33
     */
34
    public function __construct($name)
35
    {
36
        $this->name = $name;
37
    }
38
}