1: <?php
2:
3: namespace Charcoal\Cms;
4:
5:
6: use Charcoal\Object\Content;
7: use Charcoal\Object\CategorizableInterface;
8: use Charcoal\Object\CategorizableTrait;
9: use Charcoal\Object\PublishableInterface;
10: use Charcoal\Object\PublishableTrait;
11:
12:
13: use Charcoal\Translator\Translation;
14:
15:
16: use Charcoal\Cms\FaqInterface;
17: use Charcoal\Cms\MetatagInterface;
18: use Charcoal\Cms\SearchableInterface;
19: use Charcoal\Cms\Searchabletrait;
20:
21: 22: 23:
24: abstract class AbstractFaq extends Content implements
25: CategorizableInterface,
26: FaqInterface,
27: PublishableInterface,
28: SearchableInterface
29: {
30: use CategorizableTrait;
31: use PublishableTrait;
32: use SearchableTrait;
33:
34: 35: 36: 37: 38:
39: private $question;
40:
41: 42: 43:
44: private $answer;
45:
46: 47: 48: 49:
50: public function setQuestion($question)
51: {
52: $this->question = $this->translator()->translation($question);
53: return $this;
54: }
55:
56: 57: 58:
59: public function question()
60: {
61: return $this->question;
62: }
63:
64: 65: 66: 67:
68: public function setAnswer($answer)
69: {
70: $this->answer = $this->translator()->translation($answer);
71: return $this;
72: }
73:
74: 75: 76:
77: public function answer()
78: {
79: return $this->answer;
80: }
81: }
82: