Initial Code commit

This commit is contained in:
nisch.codes 2025-07-22 23:22:33 +02:00
parent c566972160
commit ab153bc311

View File

@ -23,6 +23,8 @@ use Nischcodes\Shiftcalc\MVC\BaseModel;
class HomeModel implements BaseModel { class HomeModel implements BaseModel {
protected $repository = [];
// implement the init function // implement the init function
public function init() { public function init() {
echo "HomeModel init"; echo "HomeModel init";
@ -30,8 +32,11 @@ class HomeModel implements BaseModel {
// implement the getAll function // implement the getAll function
public function getAll() { public function getAll() {
return []; return $this->repository;
} }
public function get($index){} // implement the get function
public function get($index){
return $this->repository[$index];
}
} }