Completed
Pull Request — master (#80)
by John
02:58
created

Foo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 11
rs 9.4285
c 2
b 0
f 0
cc 1
eloc 9
nc 1
nop 4
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
     * @var \DateTimeInterface
25
     */
26
    private $aDate;
27
28
    /**
29
     * @var \DateTimeInterface
30
     */
31
    private $aDateTime;
32
33
    /**
34
     * Foo constructor.
35
     *
36
     * @param string             $a
37
     * @param Bar                $bar
38
     * @param \DateTimeInterface $aDate
39
     * @param \DateTimeInterface $aDateTime
40
     */
41
    public function __construct(
42
        string $a,
43
        Bar $bar,
44
        \DateTimeInterface $aDate = null,
45
        \DateTimeInterface $aDateTime = null
46
    ) {
47
        $this->a         = $a;
48
        $this->bar       = $bar;
49
        $this->aDate     = $aDate;
50
        $this->aDateTime = $aDateTime;
51
    }
52
}
53