Changeset View
Changeset View
Standalone View
Standalone View
src/app/Handlers/GroupRoom.php
- This file was copied from src/app/Handlers/Meet.php.
<?php | <?php | ||||
namespace App\Handlers; | namespace App\Handlers; | ||||
class Meet extends Base | class GroupRoom extends Base | ||||
{ | { | ||||
/** | /** | ||||
* The entitleable class for this handler. | * The entitleable class for this handler. | ||||
* | * | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
public static function entitleableClass(): string | public static function entitleableClass(): string | ||||
{ | { | ||||
return \App\User::class; | return \App\Meet\Room::class; | ||||
} | } | ||||
/** | /** | ||||
* SKU handler metadata. | * SKU handler metadata. | ||||
* | * | ||||
* @param \App\Sku $sku The SKU object | * @param \App\Sku $sku The SKU object | ||||
* | * | ||||
* @return array | * @return array | ||||
*/ | */ | ||||
public static function metadata(\App\Sku $sku): array | public static function metadata(\App\Sku $sku): array | ||||
{ | { | ||||
$data = parent::metadata($sku); | $data = parent::metadata($sku); | ||||
$data['required'] = ['Groupware']; | $data['exclusive'] = ['Room']; | ||||
$data['controllerOnly'] = true; | |||||
return $data; | return $data; | ||||
} | } | ||||
/** | |||||
* The priority that specifies the order of SKUs in UI. | |||||
* Higher number means higher on the list. | |||||
* | |||||
* @return int | |||||
*/ | |||||
public static function priority(): int | |||||
{ | |||||
return 50; | |||||
} | |||||
} | } |