KMP PHP API Reference

DefaultWarrantManager
in package
implements WarrantManagerInterface uses QueuedMailerAwareTrait, MailerAwareTrait

Table of Contents

Interfaces

WarrantManagerInterface
Warrant Manager Interface

Properties

$mailer  : Mailer
$activeWindowManager  : ActiveWindowManagerInterface

Methods

__construct()  : mixed
Constructor.
approve()  : ServiceResult
Approve.
cancel()  : ServiceResult
Cancel.
cancelByEntity()  : ServiceResult
Cancel by entity.
decline()  : ServiceResult
Decline.
declineSingleWarrant()  : ServiceResult
Decline single warrant.
getWarrantPeriod()  : WarrantPeriod|null
Get warrant period.
request()  : ServiceResult
Request.
cancelWarrant()  : ServiceResult
Cancel warrant.
declineWarrant()  : ServiceResult
Decline warrant.
queueMail()  : Mailer
Returns a mailer instance.
queueMailJob()  : void
Queues a mail job to be processed later.
sendMailNow()  : Mailer
Returns a mailer instance.
stopWarrantDependants()  : ServiceResult
Stop warrant dependants.

Properties

Methods

cancel()

Cancel.

public cancel(mixed $warrant_id, mixed $reason, mixed $rejecter_id, mixed $expiresOn) : ServiceResult
Parameters
$warrant_id : mixed
$reason : mixed
$rejecter_id : mixed
$expiresOn : mixed
Return values
ServiceResult

cancelByEntity()

Cancel by entity.

public cancelByEntity(mixed $entityType, mixed $entityId, mixed $reason, mixed $rejecter_id, mixed $expiresOn) : ServiceResult
Parameters
$entityType : mixed
$entityId : mixed
$reason : mixed
$rejecter_id : mixed
$expiresOn : mixed
Return values
ServiceResult

declineSingleWarrant()

Decline single warrant.

public declineSingleWarrant(mixed $warrant_id, mixed $reason, mixed $rejecter_id) : ServiceResult
Parameters
$warrant_id : mixed
$reason : mixed
$rejecter_id : mixed
Return values
ServiceResult

cancelWarrant()

Cancel warrant.

protected cancelWarrant(mixed $warrantTable, mixed $warrant, mixed $expiresOn, mixed $rejecter_id, mixed $reason) : ServiceResult
Parameters
$warrantTable : mixed
$warrant : mixed
$expiresOn : mixed
$rejecter_id : mixed
$reason : mixed
Return values
ServiceResult

declineWarrant()

Decline warrant.

protected declineWarrant(mixed $warrantTable, mixed $warrant, mixed $rejecter_id, mixed $reason) : ServiceResult
Parameters
$warrantTable : mixed
$warrant : mixed
$rejecter_id : mixed
$reason : mixed
Return values
ServiceResult

queueMail()

Returns a mailer instance.

protected queueMail(string $name, mixed $action, mixed $to, mixed $vars) : Mailer
Parameters
$name : string

Mailer's name.

$action : mixed
$to : mixed
$vars : mixed
Tags
throws
MissingMailerException

if undefined mailer class.

Return values
Mailer

queueMailJob()

Queues a mail job to be processed later.

protected queueMailJob(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

Data to be passed to the mailer.

sendMailNow()

Returns a mailer instance.

protected sendMailNow(array<string|int, mixed> $data) : Mailer
Parameters
$data : array<string|int, mixed>
Tags
throws
MissingMailerException

if undefined mailer class.

Return values
Mailer

        
On this page

Search results