First draft
This commit is contained in:
29
src/OAI/Verb/Identify.php
Normal file
29
src/OAI/Verb/Identify.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user