src/Server/Asyn/MQTT/MQTT.php
public function setWill($topic, $message, $qos = 0, $retain = 0)
    {
        $this->connect_will = new Will($topic, $message, $qos, $retain);
    }
public function setWill($topic, $message, $qos = 0, $retain = 0)
    {
        $this->connect_will = new Will($topic, $message, $qos, $retain);
    }
public function setWill ( $ topic , $ message , $ qos = 0 , $ retain = 0 ) { $ this -> connect_will = new Will ( $ topic , $ message , $ qos , $ retain ) ; }
Set Will Message

@param string $topic
@param string $message
@param int $qos 0,1,2
@param int $retain bool
Set Will Message