src/Api/SeriesApi.php 1 location
|
@@ 26-32 (lines=7) @@
|
23 |
|
/** |
24 |
|
* @return Series[]|ArrayCollection |
25 |
|
*/ |
26 |
|
public function find($series) |
27 |
|
{ |
28 |
|
$crawler = $this->client->get(sprintf('/hledat/?s=%s', urlencode($series))); |
29 |
|
$page = new SearchPage($crawler, $this->client); |
30 |
|
|
31 |
|
return $page->getSeries(); |
32 |
|
} |
33 |
|
|
34 |
|
public function get($series) |
35 |
|
{ |
src/Api/UserApi.php 1 location
|
@@ 19-25 (lines=7) @@
|
16 |
|
|
17 |
|
class UserApi extends AbstractApi |
18 |
|
{ |
19 |
|
public function find($user) |
20 |
|
{ |
21 |
|
$crawler = $this->client->get(sprintf('/hledat/?s=%s', urlencode($user))); |
22 |
|
$page = new SearchPage($crawler, $this->client); |
23 |
|
|
24 |
|
return $page->getUsers(); |
25 |
|
} |
26 |
|
|
27 |
|
public function get($user) |
28 |
|
{ |