@@ -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)); |
@@ -121,6 +121,9 @@ |
||
121 | 121 | return $sessions; |
122 | 122 | } |
123 | 123 | |
124 | + /** |
|
125 | + * @param Event $event |
|
126 | + */ |
|
124 | 127 | public function getComments($event) |
125 | 128 | { |
126 | 129 | $comments = $this->crawler->filter('.comments .comment')->each(function (Crawler $node) use ($event) { |