Page MenuHomePhorge

Beta.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

Beta.php

<?php
namespace App\Handlers;
class Beta extends \App\Handlers\Base
{
/**
* The entitleable class for this handler.
*
* @return string
*/
public static function entitleableClass(): string
{
return \App\User::class;
}
/**
* Prerequisites for the Entitlement to be applied to the object.
*
* @param \App\Entitlement $entitlement
* @param mixed $object
*
* @return bool
*/
public static function preReq($entitlement, $object): bool
{
// We allow inactive "beta" Sku to be assigned
if (self::entitleableClass() !== $entitlement->entitleable_type) {
\Log::error("Entitleable class mismatch");
return false;
}
return true;
}
/**
* The priority that specifies the order of SKUs in UI.
* Higher number means higher on the list.
*
* @return int
*/
public static function priority(): int
{
// Just above all other beta SKUs, please
return 10;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Apr 6, 3:17 AM (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e9/3a/4103d7d93da3dc651e9b30a5d604
Default Alt Text
Beta.php (1 KB)

Event Timeline