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 ( 0c01fe...beedbe )
by Romain
01:58
created

AbstractRelation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 9
nc 1
nop 4
1
<?php
2
3
namespace Halapi\Relation;
4
5
use Halapi\Annotation\Embeddable;
6
use Doctrine\Common\Annotations\Reader;
7
8
/**
9
 * Class AbstractRelation.
10
 *
11
 * @author Romain Richard
12
 */
13
class AbstractRelation
14
{
15
    /**
16
     * @var Reader
17
     */
18
    protected $annotationReader;
19
20
    /**
21
     * Does an entity's property has the @embeddable annotation ?
22
     *
23
     * @param $property
24
     *
25
     * @return bool
26
     */
27
    protected function isEmbeddable($property)
28
    {
29
        return null !== $this->annotationReader->getPropertyAnnotation($property, Embeddable::class);
30
    }
31
}
32