private createClass ( string $method ) : SimpleSoftwareIO\QrCode\DataTypes\DataTypeInterface | ||
$method | string | |
return | SimpleSoftwareIO\QrCode\DataTypes\DataTypeInterface |
private function createClass($method)
{
$class = $this->formatClass($method);
if (!class_exists($class)) {
throw new \BadMethodCallException();
}
return new $class();
}