* @copyright 2021 nisch.codes * @license https://projects.nisch.codes/nischcodes/shiftcalc/src/branch/main/LICENSE GPL-3 * @version 1.0.0 * @link https://projects.nisch.codes/nischcodes/shiftcalc */ use Nischcodes\Shiftcalc\MVC\BaseModel; class HomeModel implements BaseModel { protected $repository = []; // implement the init function public function init() { echo "HomeModel init"; } // implement the getAll function public function getAll() { return $this->repository; } // implement the get function public function get($index){ return $this->repository[$index]; } }