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

ReferenceMetadata   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getReferenceClass() 0 4 1
A setReferenceClass() 0 6 1
A isArray() 0 4 1
A setArray() 0 6 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
12
namespace Reva2\JsonApi\Decoders\Mapping;
13
14
use Reva2\JsonApi\Contracts\Decoders\Mapping\ReferenceMetadataInterface;
15
16
/**
17
 * Reference metadata
18
 *
19
 * @package Reva2\JsonApi\Decoders\Mapping
20
 * @author Sergey Revenko <[email protected]>
21
 */
22
class ReferenceMetadata extends PropertyMetadata implements ReferenceMetadataInterface
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: getDataType, getDataTypeParams
Loading history...
23
{
24
    /**
25
     * @var string
26
     * @internal
27
     */
28
    public $refClass;
29
30
    /**
31
     * @var bool
32
     * @internal
33
     */
34
    public $array = false;
35
36
    /**
37
     * @inheritdoc
38
     */
39
    public function getReferenceClass()
40
    {
41
        return $this->refClass;
42
    }
43
44
    /**
45
     * Sets reference class
46
     * 
47
     * @param string $refClass
48
     * @return $this
49
     */
50
    public function setReferenceClass($refClass)
51
    {
52
        $this->refClass = $refClass;
53
54
        return $this;
55
    }
56
57
    /**
58
     * @inheritdoc
59
     */
60
    public function isArray()
61
    {
62
        return $this->array;
63
    }
64
65
    /**
66
     * Sets value of flag which show that refrence contains serveral items.
67
     * 
68
     * @param bool $isArray
69
     * @return $this
70
     */
71
    public function setArray($isArray)
72
    {
73
        $this->array = $isArray;
74
        
75
        return $this;
76
    }
77
}