Changeset View
Changeset View
Standalone View
Standalone View
src/app/Handlers/Room.php
- This file was moved from src/app/Handlers/Meet.php.
<?php | <?php | ||||
namespace App\Handlers; | namespace App\Handlers; | ||||
class Meet extends Base | class Room 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['enabled'] = true; | ||||
$data['exclusive'] = ['GroupRoom']; | |||||
return $data; | return $data; | ||||
} | } | ||||
/** | /** | ||||
* The priority that specifies the order of SKUs in UI. | * The priority that specifies the order of SKUs in UI. | ||||
* Higher number means higher on the list. | * Higher number means higher on the list. | ||||
* | * | ||||
* @return int | * @return int | ||||
*/ | */ | ||||
public static function priority(): int | public static function priority(): int | ||||
{ | { | ||||
return 50; | return 10; | ||||
} | } | ||||
} | } |