aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-07-18 16:09:12 +0300
committerValentin Popov <info@valentineus.link>2020-07-18 16:09:12 +0300
commitbf538eac242e4fc2962e626bfb722fa0638afcb2 (patch)
tree9c95806c0b09c7f8572581bed5f8ba828d468b9a
parentb10e4aa662d486b26166a1b409945376cb8a79c4 (diff)
downloadphp-epg-service-bf538eac242e4fc2962e626bfb722fa0638afcb2.tar.xz
php-epg-service-bf538eac242e4fc2962e626bfb722fa0638afcb2.zip
Added create static function
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--src/Presenter/ServicePresenter.php9
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