|
2
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
namespace Company\BaseBundle\Entity; |
|
|
4 |
|
|
|
5 |
use Doctrine\ORM\Mapping as ORM; |
|
9
|
6 |
use IRI\Bundle\WikiTagBundle\Model\DocumentInterface; |
|
2
|
7 |
|
|
|
8 |
/** |
|
|
9 |
* Company\BaseBundle\Entity\Document |
|
|
10 |
* |
|
|
11 |
* @ORM\Table() |
|
|
12 |
* @ORM\Entity(repositoryClass="Company\BaseBundle\Entity\DocumentRepository") |
|
|
13 |
*/ |
|
9
|
14 |
class Document implements DocumentInterface |
|
2
|
15 |
{ |
|
|
16 |
/** |
|
|
17 |
* @var integer $id |
|
|
18 |
* |
|
|
19 |
* @ORM\Column(name="id", type="integer") |
|
|
20 |
* @ORM\Id |
|
|
21 |
* @ORM\GeneratedValue(strategy="AUTO") |
|
|
22 |
*/ |
|
|
23 |
private $id; |
|
|
24 |
|
|
|
25 |
/** |
|
|
26 |
* @var string $title |
|
|
27 |
* |
|
|
28 |
* @ORM\Column(name="title", type="string", length=255) |
|
|
29 |
*/ |
|
|
30 |
private $title; |
|
|
31 |
|
|
|
32 |
/** |
|
|
33 |
* @var text $description |
|
|
34 |
* |
|
|
35 |
* @ORM\Column(name="description", type="text") |
|
|
36 |
*/ |
|
|
37 |
private $description; |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
/** |
|
|
41 |
* Get id |
|
|
42 |
* |
|
9
|
43 |
* @return integer |
|
2
|
44 |
*/ |
|
|
45 |
public function getId() |
|
|
46 |
{ |
|
|
47 |
return $this->id; |
|
|
48 |
} |
|
|
49 |
|
|
|
50 |
/** |
|
|
51 |
* Set title |
|
|
52 |
* |
|
|
53 |
* @param string $title |
|
|
54 |
*/ |
|
|
55 |
public function setTitle($title) |
|
|
56 |
{ |
|
|
57 |
$this->title = $title; |
|
|
58 |
} |
|
|
59 |
|
|
|
60 |
/** |
|
|
61 |
* Get title |
|
|
62 |
* |
|
9
|
63 |
* @return string |
|
2
|
64 |
*/ |
|
|
65 |
public function getTitle() |
|
|
66 |
{ |
|
|
67 |
return $this->title; |
|
|
68 |
} |
|
|
69 |
|
|
|
70 |
/** |
|
|
71 |
* Set description |
|
|
72 |
* |
|
|
73 |
* @param text $description |
|
|
74 |
*/ |
|
|
75 |
public function setDescription($description) |
|
|
76 |
{ |
|
|
77 |
$this->description = $description; |
|
|
78 |
} |
|
|
79 |
|
|
|
80 |
/** |
|
|
81 |
* Get description |
|
|
82 |
* |
|
9
|
83 |
* @return text |
|
2
|
84 |
*/ |
|
|
85 |
public function getDescription() |
|
|
86 |
{ |
|
|
87 |
return $this->description; |
|
|
88 |
} |
|
|
89 |
} |