Feed interface

This commit is contained in:
2020-10-03 02:44:11 +05:00
parent bc15c3ba35
commit 3b50c8058f
7 changed files with 14 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ namespace App\Services\Feeds;
use Goutte\Client;
class SanguFeed
class SanguFeed implements Feed
{
protected $client;
@@ -11,7 +11,7 @@ class SanguFeed
{
$this->client = new Client();
}
public function get()
public function get() : array
{
$crawler = $this->client->request('GET', "http://sangu.mv/");