@@ -53,6 +53,9 @@ discard block |
||
| 53 | 53 | return $this->{$type}(); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | + /** |
|
| 57 | + * @param string $url |
|
| 58 | + */ |
|
| 56 | 59 | public function ajax($url, array $options = [], \Closure $processor = null) |
| 57 | 60 | { |
| 58 | 61 | $options['headers'] = array_merge(isset($options['headers']) ? $options['headers'] : [], ['X-Requested-With' => 'XMLHttpRequest']); |
@@ -75,6 +78,9 @@ discard block |
||
| 75 | 78 | return $crawler; |
| 76 | 79 | } |
| 77 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $uri |
|
| 83 | + */ |
|
| 78 | 84 | public function model($class, $uri) |
| 79 | 85 | { |
| 80 | 86 | return $this->manager->get($class, $uri, $this->initializer($class, $uri)); |
@@ -123,6 +123,9 @@ discard block |
||
| 123 | 123 | return $sessions; |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | + /** |
|
| 127 | + * @param Event $event |
|
| 128 | + */ |
|
| 126 | 129 | public function getPolls($event) |
| 127 | 130 | { |
| 128 | 131 | $polls = $this->crawler->filter('.poll')->each(function (Crawler $node) use ($event) { |
@@ -143,6 +146,9 @@ discard block |
||
| 143 | 146 | return new ArrayCollection($polls); |
| 144 | 147 | } |
| 145 | 148 | |
| 149 | + /** |
|
| 150 | + * @param Event $event |
|
| 151 | + */ |
|
| 146 | 152 | public function getComments($event) |
| 147 | 153 | { |
| 148 | 154 | $comments = $this->crawler->filter('.comments .comment')->each(function (Crawler $node) use ($event) { |