Last active
June 4, 2021 07:38
-
-
Save basherr/46f0522ea4377c930c747db89c5a2b0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\ApiModels; | |
use App\Traits\CanAccessProperties; | |
/** | |
* class BaseApiModel | |
* | |
* The base class for all the models | |
* | |
* @package App\ApiModels | |
*/ | |
abstract class BaseApiModel | |
{ | |
use CanAccessProperties; | |
/** | |
* Create an object from API response | |
* | |
* @param mixed $incoming | |
* @return mixed | |
*/ | |
abstract public function hydrate($incoming); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment