common\ModuleExtraType::__construct PHP 메소드

__construct() 공개 메소드

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