common\ModuleExtraType::__construct PHP Method

__construct() public method

public __construct ( string $type )
$type string
    public function __construct($type)
    {
        if (!in_array($type, self::getPossibleTypes())) {
            throw InvalidModuleExtraType::withType($type);
        }
        $this->type = $type;
    }