for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* citeproc-php: LocatorHelper.php
* User: Sebastian Böttger <[email protected]>
* created at 07.04.20, 22:31
*/
namespace Seboettg\CiteProc\Util;
class LocatorHelper
{
private const LABEL_TO_VARIABLE_MAP = [
"page" => "page",
"chapter" => "chapter-number",
"issue" => "folio",
"note" => "note",
"section" => "section",
"volume" => "volume"
];
public static function mapLocatorLabelToRenderVariable($label)
return self::LABEL_TO_VARIABLE_MAP[$label];
}