Last active
October 23, 2017 14:37
-
-
Save ahmedash95/5309588f7d02134849027420dab6d686 to your computer and use it in GitHub Desktop.
PHP : Tight Coupled Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Posts { | |
private $commentsModel; | |
private $postsModel; | |
public function __construct(){ | |
$this->commentsModel = new \App\Models\CommentsModel; | |
$this->postsModel = new \App\Models\PostsModel; | |
} | |
// .... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment