loyaltyCard = $loyaltyCard; $this->format = $httpStatusCode; $this->module = "LoyaltyCard"; $this->model = "LoyaltyCard"; } public function register() { if($this->loyaltyCard->store()) { return $this->format->created(); } else { return $this->format->badRequest(); } } public function test_login() { } }