File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ abstract class Controller {
1212 private $ data ;
1313
1414 /** Model Class Object */
15- private $ model ;
15+ protected $ model ;
1616
1717 /** Abstract Function for Set Model Class Object */
1818 abstract protected function setModel ();
Original file line number Diff line number Diff line change 77
88class Controller extends AbstractController {
99
10- public function __construct (private Model $ model ) {
10+ public function __construct (private Model $ _model ) {
1111 parent ::__construct ();
1212 }
1313
1414 protected function setModel () {
15- return $ this ->model ;
15+ return $ this ->_model ;
1616 }
1717
1818 protected function setData () {
19- return $ this ->model ->findAll ();
19+ return $ this ->_model ->findAll ();
2020 }
2121}
Original file line number Diff line number Diff line change 77
88class Controller extends AuthController {
99
10- public function __construct (protected Model $ model ) {
10+ public function __construct (protected Model $ _model ) {
1111 parent ::__construct ();
1212 }
1313
1414 protected function setModel () {
15- return $ this ->model ;
15+ return $ this ->_model ;
1616 }
1717
1818 protected function setData () {
19- return $ this ->model ->findAll ();
19+ return $ this ->_model ->findAll ();
2020 }
2121}
You can’t perform that action at this time.
0 commit comments