PHP Class App\services\PushService

Show file 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 property

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