src/EAPPacket.php
public function setId($id = null)
    {
        if ($id == null) {
            $this->id = mt_rand(0, 255);
        } else {
            $this->id = (int)$id;
        }

        return $this;
    }
public function setId($id = null)
    {
        if ($id == null) {
            $this->id = mt_rand(0, 255);
        } else {
            $this->id = (int)$id;
        }

        return $this;
    }
public function setId ( $ id = null ) { if ( $ id == null ) { $ this -> id = mt_rand ( 0 , 255 ) ; } else { $ this -> id = ( int ) $ id ; } return $ this ; }
Set the ID of the EAP packet
@param int $id The EAP packet ID
@return \Dapphp\Radius\EAPPacket Fluent interface
Set the ID of the EAP packet