⚠️ Breaking changes ⚠️
- PoLaKoSz\Mafab\Models\MafabMovie
- public function getYear() : string {
+ public function getYear() : int {
- Minimum required PHP version:
7.1
- Removed
PoLaKoSz\Mafab\DataAccessLayer\FakeWebClient
class
PoLaKoSz\Mafab\Search
class now located under PoLaKoSz\Mafab\Endpoints\Search
-PoLaKoSz\Mafab\Endpoints\Search
now requires an PoLaKoSz\Mafab\DataAccessLayer\IWebClient
in the constructor
Features
PoLaKoSz\Mafab\Models\MafabMovie->getYear()
returns -1
if year not found
- PoLaKoSz\Mafab\Endpoints\Search
- class Search extends Endpoint
+ class Search extends Endpoint implements SearchEndpointInterface
- Added a main entry point (
PoLaKoSz\Mafab\Mafab
class)
use PoLaKoSz\Mafab\Mafab;
...
$mafab = new Mafab();
$search = $mafab->search(); // @return PoLaKoSz\Mafab\EndPoint\SearchEndpointInterface
$results = $search->quicklyFor('Avatar');
print_r($results);