mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireSync.git
synced 2026-05-31 23:54:06 +08:00
* zap: rm download commands and related services * zap: rm list state tracking services except SubversionService (but currently unused) * zap: rm unused db tables and related resources * refactor: reorganize CLI commands and options hopefully for the last time * tweak: rm port mappings from docker-compose.yml. use docker-compose.override.yml if you need that. * feat: archival-related svn scripts * doc: update README with some roadmappy verbiage
41 lines
704 B
PHP
41 lines
704 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Tests\Stubs;
|
|
|
|
use App\Services\Metadata\MetadataServiceInterface;
|
|
use Generator;
|
|
|
|
class MetadataServiceStub implements MetadataServiceInterface
|
|
{
|
|
public function exportAllMetadata(): Generator
|
|
{
|
|
yield from [];
|
|
}
|
|
|
|
public function save(array $metadata): void
|
|
{
|
|
// de nada
|
|
}
|
|
|
|
public function getStatus(string $slug): ?string
|
|
{
|
|
return 'open';
|
|
}
|
|
|
|
public function getPulledAfter(int $timestamp): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function getCheckedAfter(int $timestamp): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function getAllSlugs(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|