mik icon indicating copy to clipboard operation
mik copied to clipboard

Add abstract method ->metadata() to MetadataParser.php

Open mjordan opened this issue 7 years ago • 0 comments

All metadataparser subclasses (MODS metadata parsers, Templated parser, the dc/OaiToDc parser, and the CsvToJson parser) all implement the ->metadata() method in the same way. In the interests of a clean OO API, we should threrefore make that method abstract in the parent MetadataParser.php class.

Running PHPUnit tests with this in place reveals no errors so the change should have no side effects.

Related issue: #400.

mjordan avatar Jun 25 '17 17:06 mjordan