for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BeyondCode\LaravelWebSockets\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Ratchet\ConnectionInterface;
class MessagesBroadcasted
{
use Dispatchable, SerializesModels;
/**
* The amount of messages sent.
*
* @var int
*/
protected $sentMessagesCount;
* Initialize the event.
* @param int $sentMessagesCount
* @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(int $sentMessagesCount = 0)
$this->sentMessagesCount = $sentMessagesCount;
}
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.