PHP Class App\services\PushService

Mostrar archivo Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$pushFactory App\Ninja\Notifications\PushFactory

Public Methods

Method Description
__construct ( PushFactory $pushFactory )
sendNotification ( Invoice $invoice, $type )

Private Methods

Method Description
checkDeviceExists ( App\Models\Account $account ) : boolean checkDeviceExists function
entitySentMessage ( Invoice $invoice ) : string
entityViewedMessage ( Invoice $invoice ) : string
invoicePaidMessage ( Invoice $invoice ) : string
messageType ( Invoice $invoice, $type ) : string messageType function
pushMessage ( Invoice $invoice, $token, $type ) pushMessage function
quoteApprovedMessage ( Invoice $invoice ) : string

Method Details

__construct() public method

public __construct ( PushFactory $pushFactory )
$pushFactory App\Ninja\Notifications\PushFactory

sendNotification() public method

public sendNotification ( Invoice $invoice, $type )
$invoice app\models\Invoice
$type

Property Details

$pushFactory protected_oe property

protected PushFactory,App\Ninja\Notifications $pushFactory
return App\Ninja\Notifications\PushFactory