mirror of
https://github.com/thrillfall/nextcloud-gpodder.git
synced 2024-12-27 16:23:00 +01:00
24 lines
477 B
PHP
24 lines
477 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\GPodderSync\Core\SubscriptionChange;
|
|
|
|
class SubscriptionChangesReader {
|
|
|
|
/**
|
|
* @param array $urls
|
|
* @param bool $subscribed
|
|
*
|
|
* @return SubscriptionChange[]
|
|
*/
|
|
public static function mapToSubscriptionsChanges(array $urls, bool $subscribed): array {
|
|
$subscriptionChanges = [];
|
|
foreach ($urls as $url) {
|
|
$subscriptionChanges[] = new SubscriptionChange($url, $subscribed);
|
|
}
|
|
|
|
return $subscriptionChanges;
|
|
}
|
|
|
|
}
|