sendOne() public method

Send one method to get fully working older version.
public sendOne ( $info, $category = null ) : SendOne
$info
$category
return Fenos\Notifynder\Senders\SendOne
Beispiel #1
0
 /**
  * Send One notification.
  *
  * @param  array $info
  * @return mixed
  */
 public function sendOne($info = [])
 {
     $info = count($info) > 0 ? $info : $this->toArray();
     $notificationSent = $this->notifynderSender->sendOne($info, $this->defaultCategory);
     $this->refresh();
     return $notificationSent;
 }
 /**
  * Send One notification
  *
  * @param  array $info
  * @return mixed
  */
 public function sendOne($info = [])
 {
     $info = count($info) > 0 ? $info : $this->toArray();
     return $this->notifynderSender->sendOne($info, $this->defaultCategory);
 }