@@ -155,6 +155,10 @@ discard block |
||
155 | 155 | $questionHelper->writeGeneratorSummary($output, []); |
156 | 156 | } |
157 | 157 | |
158 | + /** |
|
159 | + * @param \Sensio\Bundle\GeneratorBundle\Command\Helper\QuestionHelper $questionHelper |
|
160 | + * @param InputInterface $input |
|
161 | + */ |
|
158 | 162 | protected function createYesNoQuestion($questionHelper, $input, $channel) |
159 | 163 | { |
160 | 164 | $question = new Question( |
@@ -164,12 +168,20 @@ discard block |
||
164 | 168 | ), 'yes' |
165 | 169 | ); |
166 | 170 | $question->setNormalizer( |
171 | + |
|
172 | + /** |
|
173 | + * @param \Sensio\Bundle\GeneratorBundle\Command\Helper\QuestionHelper $value |
|
174 | + */ |
|
167 | 175 | function ($value) { |
168 | 176 | return $value[0] == 'y' ? 'y' : 'n'; |
169 | 177 | } |
170 | 178 | ); |
171 | 179 | |
172 | 180 | $question->setValidator( |
181 | + |
|
182 | + /** |
|
183 | + * @param \Sensio\Bundle\GeneratorBundle\Command\Helper\QuestionHelper $answer |
|
184 | + */ |
|
173 | 185 | function ($answer) { |
174 | 186 | // Should only contain letters. |
175 | 187 | $allowed = [ |
@@ -86,6 +86,9 @@ |
||
86 | 86 | } |
87 | 87 | } |
88 | 88 | |
89 | + /** |
|
90 | + * @param ContainerBuilder $container |
|
91 | + */ |
|
89 | 92 | private function createBroadcaster($name, $broadcaster, $container) |
90 | 93 | { |
91 | 94 | // @TODO: |
@@ -48,6 +48,9 @@ discard block |
||
48 | 48 | return false; |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param \DateTime $now |
|
53 | + */ |
|
51 | 54 | public function setReadAtDate(DatabaseNotificationInterface $notification, $now = null, $flush = true) |
52 | 55 | { |
53 | 56 | if (empty($now)) { |
@@ -63,6 +66,9 @@ discard block |
||
63 | 66 | } |
64 | 67 | } |
65 | 68 | |
69 | + /** |
|
70 | + * @param \DateTime $now |
|
71 | + */ |
|
66 | 72 | public function setUsersNotificationsAsRead(NotifiableInterface $notifiable, $now = null) |
67 | 73 | { |
68 | 74 | $entity = $this->notificationEntityName(); |
@@ -98,6 +104,9 @@ discard block |
||
98 | 104 | return 0; |
99 | 105 | } |
100 | 106 | |
107 | + /** |
|
108 | + * @return string |
|
109 | + */ |
|
101 | 110 | protected function notificationEntityName() |
102 | 111 | { |
103 | 112 | $config = $this->databaseConfiguration; |