Passed
Push — develop ( 4a5a66...90be87 )
by BENARD
04:36
created

NbPostTrait::setNbPost()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Traits\Entity;
4
5
trait NbPostTrait
6
{
7
    /**
8
     * @ORM\Column(name="nbPost", type="integer", nullable=false, options={"default":0})
9
     */
10
    private int $nbPost = 0;
11
12
    /**
13
     * Set nbPost
14
     *
15
     * @param integer $nbPost
16
     * @return $this
17
     */
18
    public function setNbPost(int $nbPost): static
19
    {
20
        $this->nbPost = $nbPost;
21
22
        return $this;
23
    }
24
25
    /**
26
     * Get nbPost
27
     *
28
     * @return integer
29
     */
30
    public function getNbPost(): int
31
    {
32
        return $this->nbPost;
33
    }
34
}
35