sintonia/legacy/application/services/PublishServiceFactory.php

23 lines
519 B
PHP
Raw Permalink Normal View History

<?php
2021-10-11 16:10:47 +02:00
class PublishServiceFactory
{
/**
2021-10-11 16:10:47 +02:00
* Given an identifying string, get a PublishService object of that type.
*
* @param $serviceName string the name of the service to create
*
2021-10-11 16:10:47 +02:00
* @return null|Publish
*/
2021-10-11 16:10:47 +02:00
public static function getService($serviceName)
{
switch ($serviceName) {
case STATION_PODCAST_SERVICE_NAME:
return new Application_Service_PodcastEpisodeService();
2021-10-11 16:10:47 +02:00
default:
return null;
}
}
2021-10-11 16:10:47 +02:00
}