Changeset View
Changeset View
Standalone View
Standalone View
src/app/Handlers/Base.php
<?php | <?php | ||||
namespace App\Handlers; | namespace App\Handlers; | ||||
abstract class Base | abstract class Base | ||||
{ | { | ||||
/** | /** | ||||
* The entitleable class for this handler. | * The entitleable class for this handler. | ||||
* | * | ||||
* @return mixed | * @return string | ||||
*/ | */ | ||||
public static function entitleableClass() | public static function entitleableClass(): string | ||||
{ | { | ||||
// | return ''; | ||||
} | } | ||||
/** | /** | ||||
* Prerequisites for the Entitlement to be applied to the object. | * Prerequisites for the Entitlement to be applied to the object. | ||||
* | * | ||||
* @param \App\Entitlement $entitlement | * @param \App\Entitlement $entitlement | ||||
* @param mixed $object | * @param mixed $object | ||||
* | * | ||||
* @return bool | * @return bool | ||||
*/ | */ | ||||
public static function preReq($entitlement, $object) | public static function preReq($entitlement, $object): bool | ||||
{ | { | ||||
// | return true; | ||||
} | } | ||||
/** | /** | ||||
* 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 0; | return 0; | ||||
} | } | ||||
} | } |