Implement creator studio and upload updates
This commit is contained in:
21
app/Services/Sitemaps/ShardableSitemapBuilder.php
Normal file
21
app/Services/Sitemaps/ShardableSitemapBuilder.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Services\Sitemaps;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
interface ShardableSitemapBuilder extends SitemapBuilder
|
||||
{
|
||||
public function totalItems(): int;
|
||||
|
||||
public function shardSize(): int;
|
||||
|
||||
/**
|
||||
* @return list<SitemapUrl>
|
||||
*/
|
||||
public function itemsForShard(int $shard): array;
|
||||
|
||||
public function lastModifiedForShard(int $shard): ?DateTimeInterface;
|
||||
}
|
||||
Reference in New Issue
Block a user