First draft

This commit is contained in:
2026-04-30 16:08:01 +02:00
parent 7ce97c0c55
commit e09a9fc2a6
21 changed files with 7137 additions and 0 deletions

29
src/OAI/Verb/Identify.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace App\OAI\Verb;
use App\OAI\OaiIdentify;
use App\OAI\OaiBase;
/**
* Identify data for the repository
*/
final class Identify
{
public readonly OaiIdentify $identify;
public function __construct()
{
$this->identify = new OaiIdentify;
}
/**
* Returns the XML response
*/
public function response(): string
{
$xml = $this->identify->toXML();
return OaiBase::create($xml, 'Identify');
}
}