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 {
12
12
private $ data ;
13
13
14
14
/** Model Class Object */
15
- private $ model ;
15
+ protected $ model ;
16
16
17
17
/** Abstract Function for Set Model Class Object */
18
18
abstract protected function setModel ();
Original file line number Diff line number Diff line change 7
7
8
8
class Controller extends AbstractController {
9
9
10
- public function __construct (private Model $ model ) {
10
+ public function __construct (private Model $ _model ) {
11
11
parent ::__construct ();
12
12
}
13
13
14
14
protected function setModel () {
15
- return $ this ->model ;
15
+ return $ this ->_model ;
16
16
}
17
17
18
18
protected function setData () {
19
- return $ this ->model ->findAll ();
19
+ return $ this ->_model ->findAll ();
20
20
}
21
21
}
Original file line number Diff line number Diff line change 7
7
8
8
class Controller extends AuthController {
9
9
10
- public function __construct (protected Model $ model ) {
10
+ public function __construct (protected Model $ _model ) {
11
11
parent ::__construct ();
12
12
}
13
13
14
14
protected function setModel () {
15
- return $ this ->model ;
15
+ return $ this ->_model ;
16
16
}
17
17
18
18
protected function setData () {
19
- return $ this ->model ->findAll ();
19
+ return $ this ->_model ->findAll ();
20
20
}
21
21
}
You can’t perform that action at this time.
0 commit comments