for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BeyondCode\LaravelWebSockets\WebSockets\Exceptions;
class OriginNotAllowed extends WebSocketException
{
/**
* Initialize the instance.
*
* @see https://pusher.com/docs/pusher_protocol#error-codes
* @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(string $appKey)
$this->message = "The origin is not allowed for `{$appKey}`.";
$this->code = 4009;
}
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.