for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Akibatech\FreeMobileSms\Notifications;
use Akibatech\FreeMobileSms\FreeMobileSms;
use Illuminate\Notifications\Notification;
/**
* Class FreeMobileChannel
*
* @package Akibatech\FreeMobileSms\Notifications
*/
class FreeMobileChannel
{
* @var FreeMobileSms
protected $client;
//-------------------------------------------------------------------------
* FreeMobileChannel constructor.
* @return self
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct(FreeMobileSms $client)
$this->client = $client;
}
* Send the given notification.
* @param mixed $notifiable
* @param \Illuminate\Notifications\Notification $notification
* @return bool
public function send($notifiable, Notification $notification)
$message = $notification->toFreeMobile($notifiable);
return $this->client->send($message->message) === 200;
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.