| Code Coverage | ||||||||||
| Classes and Traits | Functions and Methods | Lines | ||||||||
| Total |  | 100.00% | 1 / 1 |  | 100.00% | 2 / 2 | CRAP |  | 100.00% | 4 / 4 | 
| QuotesRestDataSource |  | 100.00% | 1 / 1 |  | 100.00% | 2 / 2 | 2 |  | 100.00% | 4 / 4 | 
| __construct |  | 100.00% | 1 / 1 | 1 |  | 100.00% | 3 / 3 | |||
| getQuotes |  | 100.00% | 1 / 1 | 1 |  | 100.00% | 1 / 1 | |||
| <?php | |
| declare(strict_types=1); | |
| namespace App\Quote\DataSource; | |
| use App\Quote\Collection\QuoteCollection; | |
| use App\Quote\Collection\QuoteCollectionInterface; | |
| final class QuotesRestDataSource implements DataSourceInterface | |
| { | |
| private array $data; | |
| private string $dataSourceUrl; | |
| public function __construct(string $dataSourceUrl) | |
| { | |
| $this->data = []; | |
| $this->dataSourceUrl = $dataSourceUrl; | |
| } | |
| public function getQuotes(): QuoteCollectionInterface | |
| { | |
| return QuoteCollection::fromArray([]); | |
| } | |
| } |