Files
piratepoet/lib/DynamicSegments/FreePluginConnectors/SubscribersListingsHandlerFactory.php
Amine Ben hammou 43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00

18 lines
455 B
PHP

<?php
namespace MailPoet\DynamicSegments\FreePluginConnectors;
use MailPoet\Listing\Handler;
use MailPoet\Models\DynamicSegment;
use MailPoet\Models\Segment;
class SubscribersListingsHandlerFactory {
public function get(Segment $segment, $data) {
if ($segment->type === DynamicSegment::TYPE_DYNAMIC) {
$listing = new Handler();
return $listing_data = $listing->get('\MailPoet\Models\SubscribersInDynamicSegment', $data);
}
}
}