Releases: PoLaKoSz/Mafab
Releases · PoLaKoSz/Mafab
Fix case sensivity issues in Mafab class
v.2.0.0
⚠️ 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 underPoLaKoSz\Mafab\Endpoints\Search
-PoLaKoSz\Mafab\Endpoints\Search
now requires anPoLaKoSz\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);
MafabMovie now serializable
Feature
- MafabMovie implements JsonSerializable
Fix
- MafabMovie getID() return type changed to string from int
Initial release
Ability to search for Movies only