Completed
Push — master ( cefc6c...96cc5a )
by Kirill
03:32
created

Question   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 68
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 4 1
1
<?php
2
3
namespace Chrl\AppBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Class Question
9
 * @package AppBundle\Entity
10
 *
11
 * @ORM\Entity
12
 * @ORM\Table(name="questions")
13
 */
14
class Question
15
{
16
    /**
17
     * @ORM\Id
18
     * @ORM\Column(type="integer")
19
     * @ORM\GeneratedValue(strategy="AUTO")
20
     */
21
    protected $id;
22
23
    /**
24
     * @return mixed
25
     */
26
    public function getId()
27
    {
28
        return $this->id;
29
    }
30
31
    /**
32
     * @param mixed $id
33
     */
34
    public function setId($id)
35
    {
36
        $this->id = $id;
37
    }
38
39
	/**
40
	 * GUID Of the question -- unique
41
	 *
42
	 * @ORM\Column(type="string",length=32,unique=true)
43
	 */
44
    public $guid;
45
	/**
46
	 * @ORM\Column(type="text")
47
	 */
48
	public $text;
49
	/**
50
	 * @ORM\Column(type="text")
51
	 */
52
	public $a1;
53
	/**
54
	 * @ORM\Column(type="text")
55
	 */
56
	public $a2;
57
	/**
58
	 * @ORM\Column(type="text")
59
	 */
60
	public $a3;
61
	/**
62
	 * @ORM\Column(type="text")
63
	 */
64
	public $a4;
65
	/**
66
	 * @ORM\Column(type="integer")
67
	 */
68
	public $price;
69
	/**
70
	 * @ORM\Column(type="integer")
71
	 */
72
	public $played;
73
	/**
74
	 * @ORM\Column(type="integer")
75
	 */
76
	public $correct;
77
	/**
78
	 * @ORM\Column(type="string", length=30)
79
	 */
80
	public $category;
81
}
82