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
Pull Request — master (#246)
by Asmir
02:26
created

Gh236Foo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
3
namespace Hateoas\Tests\Fixtures;
4
5
use Hateoas\Configuration\Annotation as Hateoas;
6
use JMS\Serializer\Annotation as Serializer;
7
8
9
/**
10
 * @Hateoas\Relation(
11
 *     name = "b_embed",
12
 *     embedded = @Hateoas\Embedded(
13
 *         "expr(object.b)",
14
 *          exclusion = @Hateoas\Exclusion(maxDepth=1)
15
 *     )
16
 * )
17
 */
18
class Gh236Foo
19
{
20
    /**
21
     * @Serializer\Expose()
22
     * @Serializer\MaxDepth(1)
23
     */
24
    public $a;
25
26
    /**
27
     * @Serializer\Exclude()
28
     */
29
    public $b;
30
31
    public function __construct()
32
    {
33
        $this->a = new Gh236Bar();
34
        $this->a->inner = new Gh236Bar();
35
36
        $this->b = new Gh236Bar();
37
        $this->b->xxx = 'zzz';
38
        $this->b->inner = new Gh236Bar();
39
    }
40
}
41