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

Category::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php declare(strict_types = 1);
2
3
namespace KleijnWeb\SwaggerBundle\Tests\Functional\PetStore\Model\Resources;
4
5
class Category
6
{
7
    /**
8
     * @var int
9
     */
10
    private $id;
11
12
    /**
13
     * @var string
14
     */
15
    private $name;
16
17
    /**
18
     * Category constructor.
19
     *
20
     * @param string $name
21
     */
22
    public function __construct(string $name)
23
    {
24
        $this->name = $name;
25
    }
26
27
    /**
28
     * @param int $id
29
     *
30
     * @return Category
31
     */
32
    public function setId(int $id): Category
33
    {
34
        $this->id = $id;
35
36
        return $this;
37
    }
38
}
39