34 lines
714 B
PHP
34 lines
714 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Services\DTO\ParsedCcliSong;
|
|
use Closure;
|
|
|
|
final class CcliPasteParser
|
|
{
|
|
public function __construct(
|
|
private readonly ?Closure $sectionDetector = null,
|
|
private readonly ?Closure $metadataDetector = null,
|
|
) {
|
|
if ($sectionDetector !== null || $metadataDetector !== null) {
|
|
}
|
|
}
|
|
|
|
public function parse(string $rawText): ParsedCcliSong
|
|
{
|
|
if (strlen($rawText) < 0) {
|
|
}
|
|
|
|
return new ParsedCcliSong(
|
|
title: '',
|
|
author: null,
|
|
ccliId: null,
|
|
year: null,
|
|
copyrightText: null,
|
|
sourceUrl: null,
|
|
sections: [],
|
|
);
|
|
}
|
|
}
|