Created
June 28, 2016 06:03
-
-
Save MetaDone/4ad23763b3027e1160a035ddeb6a29a5 to your computer and use it in GitHub Desktop.
This file contains 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
namespace Example\Module; | |
use Example\Contract\ExampleModel //типа интерфейс | |
class ModuleExample | |
{ | |
private $model; | |
public function __construct(ExampleModel $model) | |
{ | |
$this->model = $model; | |
} | |
public function anyAction($anyParam) | |
{ | |
$this->model->anyMethod($anyParam); | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment