equal
deleted
inserted
replaced
7 * For the full copyright and license information, please view the LICENSE |
7 * For the full copyright and license information, please view the LICENSE |
8 * file that was distributed with this source code. |
8 * file that was distributed with this source code. |
9 */ |
9 */ |
10 namespace IRI\Bundle\WikiTagBundle\Model; |
10 namespace IRI\Bundle\WikiTagBundle\Model; |
11 |
11 |
12 use IRI\Bundle\WikiTagBundle\Utils\WikiTagUtils; |
12 use Doctrine\Common\Collections\ArrayCollection; |
|
13 |
|
14 use IRI\Bundle\WikiTagBundle\Utils\WikiTagUtils; |
13 |
15 |
14 abstract class Tag implements TagInterface { |
16 abstract class Tag implements TagInterface { |
15 |
17 |
16 public static $TAG_URL_STATUS_DICT = array('null_result'=>0,'redirection'=>1,'homonyme'=>2,'match'=>3); |
18 public static $TAG_URL_STATUS_DICT = array('null_result'=>0,'redirection'=>1,'homonyme'=>2,'match'=>3); |
17 |
19 |
67 |
69 |
68 /** |
70 /** |
69 * @var object $category |
71 * @var object $category |
70 */ |
72 */ |
71 protected $category; |
73 protected $category; |
|
74 |
|
75 /** |
|
76 * @var ArrayCollection $documents |
|
77 */ |
|
78 protected $documents; |
72 |
79 |
73 |
80 |
74 /** |
81 /** |
75 * Get id |
82 * Get id |
76 * |
83 * |
299 */ |
306 */ |
300 function getCategory() |
307 function getCategory() |
301 { |
308 { |
302 return $this->category; |
309 return $this->category; |
303 } |
310 } |
|
311 |
|
312 /** |
|
313 * Get Documents |
|
314 * |
|
315 * @return ArrayCollection |
|
316 */ |
|
317 public function getDocuments() |
|
318 { |
|
319 return $this->documents; |
|
320 } |
304 |
321 |
305 /** |
322 /** |
306 * Set category to Null |
323 * Set category to Null |
307 * |
324 * |
308 */ |
325 */ |