network: explicitly specify @return void

This commit is contained in:
Dylan K. Taylor
2020-01-18 19:35:01 +00:00
parent ca86ec2ec2
commit b42966f61b
15 changed files with 122 additions and 0 deletions

View File

@ -30,6 +30,9 @@ class PacketPool{
/** @var \SplFixedArray<DataPacket> */
protected static $pool = null;
/**
* @return void
*/
public static function init(){
static::$pool = new \SplFixedArray(256);
@ -179,6 +182,8 @@ class PacketPool{
/**
* @param DataPacket $packet
*
* @return void
*/
public static function registerPacket(DataPacket $packet){
static::$pool[$packet->pid()] = clone $packet;