From bf538eac242e4fc2962e626bfb722fa0638afcb2 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 18 Jul 2020 17:09:12 +0400 Subject: Added create static function Signed-off-by: Valentin Popov --- src/Presenter/ServicePresenter.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Presenter/ServicePresenter.php') 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 @@ -43,6 +43,15 @@ final class ServicePresenter { $this->environment = $environment; } + /** + * @param \EPGService\Environments\ServiceEnvironment $environment + * + * @return \EPGService\Presenter\ServicePresenter + */ + public static function create(ServiceEnvironment $environment): ServicePresenter { + return new ServicePresenter($environment); + } + /** * @return \EPGService\Entities\CategoryEntity[] * -- cgit v1.2.3