Passed
Push — zf3-version ( d78913...04f8d4 )
by Diego
03:42
created

Activity::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 3
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Api\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Activity
9
 *
10
 * @ORM\Table(name="activity", indexes={@ORM\Index(name="fk_actividad_sector1_idx", columns={"sector_id"})})
11
 * @ORM\Entity
12
 * @ORM\Entity(repositoryClass="Api\Entity\ActivityRepository")  
13
 */
14
class Activity
15
{
16
    /**
17
     * @var integer
18
     *
19
     * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned":true})
20
     * @ORM\Id
21
     * @ORM\GeneratedValue(strategy="IDENTITY")
22
     */
23
    private $id;
0 ignored issues
show
Unused Code introduced by
The property $id is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
24
25
    /**
26
     * @var string
27
     *
28
     * @ORM\Column(name="name", type="string", length=255, nullable=true)
29
     */
30
    private $name;
0 ignored issues
show
Unused Code introduced by
The property $name is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
31
32
    /**
33
     * @var \Sector
34
     *
35
     * @ORM\ManyToOne(targetEntity="Sector")
36
     * @ORM\JoinColumns({
37
     *   @ORM\JoinColumn(name="sector_id", referencedColumnName="id", nullable=false)
38
     * })
39
     */
40
    private $sector;
0 ignored issues
show
Unused Code introduced by
The property $sector is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
41
42
43
}
44
45