Skip to content

Commit

Permalink
Update the contract with a missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
midnite81 committed Jul 15, 2022
1 parent c066009 commit b72e654
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Contracts/Prowl.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
namespace Midnite81\Prowl\Contracts;

use Http\Client\Exception;
use Midnite81\Prowl\Exceptions\IncorrectPriorityValueException;
use Midnite81\Prowl\Exceptions\ValueTooLongException;
use Midnite81\Prowl\Services\Notification;
use Midnite81\Prowl\Services\Response;

Expand Down Expand Up @@ -79,4 +81,15 @@ public function retrieveToken($providerKey);
* @throws Exception
*/
public function retrieveApiKey($providerKey, $token);

/**
* Create a message
*
* @param array $attributes
* @param array $devices
* @return Notification
* @throws IncorrectPriorityValueException
* @throws ValueTooLongException
*/
public function createMessage($attributes = [], $devices = []);
}

0 comments on commit b72e654

Please sign in to comment.