Completed
Pull Request — 3.1 (#348)
by Piotr
09:36 queued 07:40
created

Category   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 29
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setTitle() 0 4 1
A getTitle() 0 4 1
1
<?php
2
3
/**
4
 * (c) FSi sp. z o.o. <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace FSi\FixturesBundle\Entity;
13
14
use Doctrine\ORM\Mapping as ORM;
15
16
/**
17
 * @ORM\Entity
18
 * @ORM\Table(name="category")
19
 */
20
class Category
21
{
22
    /**
23
     * @ORM\Column(type="integer")
24
     * @ORM\Id
25
     * @ORM\GeneratedValue(strategy="AUTO")
26
     */
27
    protected $id;
28
29
    /**
30
     * @ORM\Column(type="string", length=100)
31
     */
32
    protected $title;
33
34
    public function getId(): ?int
35
    {
36
        return $this->id;
37
    }
38
39
    public function setTitle(?string $title): void
40
    {
41
        $this->title = $title;
42
    }
43
44
    public function getTitle(): ?string
45
    {
46
        return $this->title;
47
    }
48
}
49