diff options
author | Valentin Popov <info@valentineus.link> | 2020-07-18 16:09:12 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-07-18 16:09:12 +0300 |
commit | bf538eac242e4fc2962e626bfb722fa0638afcb2 (patch) | |
tree | 9c95806c0b09c7f8572581bed5f8ba828d468b9a /src/Presenter | |
parent | b10e4aa662d486b26166a1b409945376cb8a79c4 (diff) | |
download | php-epg-service-bf538eac242e4fc2962e626bfb722fa0638afcb2.tar.xz php-epg-service-bf538eac242e4fc2962e626bfb722fa0638afcb2.zip |
Added create static function
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/Presenter')
-rw-r--r-- | src/Presenter/ServicePresenter.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Presenter/ServicePresenter.php b/src/Presenter/ServicePresenter.php index f5b1e61..e3117ed 100644 --- a/src/Presenter/ServicePresenter.php +++ b/src/Presenter/ServicePresenter.php @@ -44,6 +44,15 @@ final class ServicePresenter { } /** + * @param \EPGService\Environments\ServiceEnvironment $environment + * + * @return \EPGService\Presenter\ServicePresenter + */ + public static function create(ServiceEnvironment $environment): ServicePresenter { + return new ServicePresenter($environment); + } + + /** * @return \EPGService\Entities\CategoryEntity[] * * @throws \GuzzleHttp\Exception\GuzzleException |