Completed
Pull Request — master (#80)
by John
03:04
created

Foo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php declare(strict_types = 1);
2
/*
3
 * This file is part of the KleijnWeb\SwaggerBundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace KleijnWeb\SwaggerBundle\Tests\Serialize\Serializer\Stubs;
10
11
class Foo
12
{
13
    /**
14
     * @var string
15
     */
16
    private $a;
17
18
    /**
19
     * @var Bar
20
     */
21
    private $bar;
22
23
    /**
24
     * Foo constructor.
25
     *
26
     * @param string   $a
27
     * @param Bar|null $bar
28
     */
29
    public function __construct(string $a, Bar $bar = null)
30
    {
31
        $this->a   = $a;
32
        $this->bar = $bar;
33
    }
34
}
35