ItemIdMetaUpgrader: consistency of API method naming

This commit is contained in:
Dylan K. Taylor 2023-02-21 16:12:44 +00:00
parent 50b8d39aba
commit 2feb9ca903
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -45,11 +45,11 @@ final class ItemIdMetaUpgrader{
array $idMetaUpgradeSchemas,
){
foreach($idMetaUpgradeSchemas as $schema){
$this->addIdMetaUpgradeSchema($schema);
$this->addSchema($schema);
}
}
public function addIdMetaUpgradeSchema(ItemIdMetaUpgradeSchema $schema) : void{
public function addSchema(ItemIdMetaUpgradeSchema $schema) : void{
if(isset($this->idMetaUpgradeSchemas[$schema->getSchemaId()])){
throw new \InvalidArgumentException("Already have a schema with priority " . $schema->getSchemaId());
}