for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fenos\Notifynder\Traits;
trait SenderCallback
{
/**
* @return callable
*/
public function getCallback()
$callback = app('notifynder.sender')->getCallback(get_called_class());
if (! is_callable($callback)) {
throw new \UnexpectedValueException("The callback isn't callable.");
}
return $callback;