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

Foo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
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 24
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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