for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fabrica\Events;
use Fabrica\Events\Event;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Queue\SerializesModels;
class WikiEvent extends Event
{
use SerializesModels;
public $project_key;
public $user;
public $param;
/**
* Create a new event instance.
*
* @return void
@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($project_key, $user, array $param=[])
$this->project_key = $project_key;
$this->user = $user;
$this->param = $param;
}
* Get the channels the event should be broadcast on.
* @return array
public function broadcastOn()
return [];
Adding a
@returnannotation 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.