protected function setComponentInfo(array $info)
{
/** @var \Xpressengine\Plugin\ComponentInterface $class */
$class = $info['class'];
if (!is_subclass_of($class, ComponentInterface::class)) {
throw new Exceptions\NotImplementedException(['className' => $class]);
}
$class::setId($info['id']);
$class::setComponentInfo(array_except($info, ['class', 'id']));
}