| @@ 13-109 (lines=97) @@ | ||
| 10 | * @author Adrien Pétremann <[email protected]> |
|
| 11 | * @license http://opensource.org/licenses/MIT The MIT License (MIT) |
|
| 12 | */ |
|
| 13 | class AdventureStepCompletion implements AdventureStepCompletionInterface |
|
| 14 | { |
|
| 15 | /** @var string */ |
|
| 16 | protected $id; |
|
| 17 | ||
| 18 | /** @var UserInterface */ |
|
| 19 | protected $user; |
|
| 20 | ||
| 21 | /** @var AdventureStepInterface */ |
|
| 22 | protected $step; |
|
| 23 | ||
| 24 | /** @var \DateTime */ |
|
| 25 | protected $completionDate; |
|
| 26 | ||
| 27 | /** @var bool */ |
|
| 28 | protected $pending; |
|
| 29 | ||
| 30 | /** |
|
| 31 | * {@inheritdoc} |
|
| 32 | */ |
|
| 33 | public function getId() |
|
| 34 | { |
|
| 35 | return $this->id; |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * {@inheritdoc} |
|
| 40 | */ |
|
| 41 | public function setId($id) |
|
| 42 | { |
|
| 43 | $this->id = $id; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * {@inheritdoc} |
|
| 48 | */ |
|
| 49 | public function getUser() |
|
| 50 | { |
|
| 51 | return $this->user; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * {@inheritdoc} |
|
| 56 | */ |
|
| 57 | public function setUser($user) |
|
| 58 | { |
|
| 59 | $this->user = $user; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * {@inheritdoc} |
|
| 64 | */ |
|
| 65 | public function getAdventureStep() |
|
| 66 | { |
|
| 67 | return $this->step; |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * {@inheritdoc} |
|
| 72 | */ |
|
| 73 | public function setAdventureStep(AdventureStepInterface $step) |
|
| 74 | { |
|
| 75 | $this->step = $step; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * {@inheritdoc} |
|
| 80 | */ |
|
| 81 | public function getCompletionDate() |
|
| 82 | { |
|
| 83 | return $this->completionDate; |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * {@inheritdoc} |
|
| 88 | */ |
|
| 89 | public function setCompletionDate(\DateTime $completionDate) |
|
| 90 | { |
|
| 91 | $this->completionDate = $completionDate; |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * {@inheritdoc} |
|
| 96 | */ |
|
| 97 | public function isPending() |
|
| 98 | { |
|
| 99 | return $this->pending; |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * {@inheritdoc} |
|
| 104 | */ |
|
| 105 | public function setPending($pending) |
|
| 106 | { |
|
| 107 | $this->pending = $pending; |
|
| 108 | } |
|
| 109 | } |
|
| 110 | ||
| @@ 13-109 (lines=97) @@ | ||
| 10 | * @author Adrien Pétremann <[email protected]> |
|
| 11 | * @license http://opensource.org/licenses/MIT The MIT License (MIT) |
|
| 12 | */ |
|
| 13 | class BadgeCompletion implements BadgeCompletionInterface |
|
| 14 | { |
|
| 15 | /** @var string */ |
|
| 16 | protected $id; |
|
| 17 | ||
| 18 | /** @var UserInterface */ |
|
| 19 | protected $user; |
|
| 20 | ||
| 21 | /** @var BadgeInterface */ |
|
| 22 | protected $badge; |
|
| 23 | ||
| 24 | /** @var \DateTime */ |
|
| 25 | protected $completionDate; |
|
| 26 | ||
| 27 | /** @var boolean */ |
|
| 28 | protected $pending; |
|
| 29 | ||
| 30 | /** |
|
| 31 | * {@inheritdoc} |
|
| 32 | */ |
|
| 33 | public function getId() |
|
| 34 | { |
|
| 35 | return $this->id; |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * {@inheritdoc} |
|
| 40 | */ |
|
| 41 | public function setId($id) |
|
| 42 | { |
|
| 43 | $this->id = $id; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * {@inheritdoc} |
|
| 48 | */ |
|
| 49 | public function getUser() |
|
| 50 | { |
|
| 51 | return $this->user; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * {@inheritdoc} |
|
| 56 | */ |
|
| 57 | public function setUser($user) |
|
| 58 | { |
|
| 59 | $this->user = $user; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * {@inheritdoc} |
|
| 64 | */ |
|
| 65 | public function getBadge() |
|
| 66 | { |
|
| 67 | return $this->badge; |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * {@inheritdoc} |
|
| 72 | */ |
|
| 73 | public function setBadge($badge) |
|
| 74 | { |
|
| 75 | $this->badge = $badge; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * {@inheritdoc} |
|
| 80 | */ |
|
| 81 | public function getCompletionDate() |
|
| 82 | { |
|
| 83 | return $this->completionDate; |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * {@inheritdoc} |
|
| 88 | */ |
|
| 89 | public function setCompletionDate(\DateTime $completionDate) |
|
| 90 | { |
|
| 91 | $this->completionDate = $completionDate; |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * {@inheritdoc} |
|
| 96 | */ |
|
| 97 | public function isPending() |
|
| 98 | { |
|
| 99 | return $this->pending; |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * {@inheritdoc} |
|
| 104 | */ |
|
| 105 | public function setPending($pending) |
|
| 106 | { |
|
| 107 | $this->pending = $pending; |
|
| 108 | } |
|
| 109 | } |
|
| 110 | ||
| @@ 13-109 (lines=97) @@ | ||
| 10 | * @author Adrien Pétremann <[email protected]> |
|
| 11 | * @license http://opensource.org/licenses/MIT The MIT License (MIT) |
|
| 12 | */ |
|
| 13 | class QuestCompletion implements QuestCompletionInterface |
|
| 14 | { |
|
| 15 | /** @var string */ |
|
| 16 | protected $id; |
|
| 17 | ||
| 18 | /** @var UserInterface */ |
|
| 19 | protected $user; |
|
| 20 | ||
| 21 | /** @var QuestInterface */ |
|
| 22 | protected $quest; |
|
| 23 | ||
| 24 | /** @var \DateTime */ |
|
| 25 | protected $completionDate; |
|
| 26 | ||
| 27 | /** @var bool */ |
|
| 28 | protected $pending; |
|
| 29 | ||
| 30 | /** |
|
| 31 | * {@inheritdoc} |
|
| 32 | */ |
|
| 33 | public function getId() |
|
| 34 | { |
|
| 35 | return $this->id; |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * {@inheritdoc} |
|
| 40 | */ |
|
| 41 | public function setId($id) |
|
| 42 | { |
|
| 43 | $this->id = $id; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * {@inheritdoc} |
|
| 48 | */ |
|
| 49 | public function getUser() |
|
| 50 | { |
|
| 51 | return $this->user; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * {@inheritdoc} |
|
| 56 | */ |
|
| 57 | public function setUser($user) |
|
| 58 | { |
|
| 59 | $this->user = $user; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * {@inheritdoc} |
|
| 64 | */ |
|
| 65 | public function getQuest() |
|
| 66 | { |
|
| 67 | return $this->quest; |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * {@inheritdoc} |
|
| 72 | */ |
|
| 73 | public function setQuest($quest) |
|
| 74 | { |
|
| 75 | $this->quest = $quest; |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * {@inheritdoc} |
|
| 80 | */ |
|
| 81 | public function getCompletionDate() |
|
| 82 | { |
|
| 83 | return $this->completionDate; |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * {@inheritdoc} |
|
| 88 | */ |
|
| 89 | public function setCompletionDate(\DateTime $completionDate) |
|
| 90 | { |
|
| 91 | $this->completionDate = $completionDate; |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * {@inheritdoc} |
|
| 96 | */ |
|
| 97 | public function isPending() |
|
| 98 | { |
|
| 99 | return $this->pending; |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * {@inheritdoc} |
|
| 104 | */ |
|
| 105 | public function setPending($pending) |
|
| 106 | { |
|
| 107 | $this->pending = $pending; |
|
| 108 | } |
|
| 109 | } |
|
| 110 | ||