public function create(NetworkRawMessage $rawMessage): IncomingMessage
    {
        $data = $rawMessage->getData();
        $this->validateNumeric($data, 'desired');
        $this->validateNumeric($data, 'current');

        return new IncomingPIDFrequencyStatus($rawMessage->getSender(), new PIDFrequencyStatus($data['desired'], $data['current']));
    }
public function create(NetworkRawMessage $rawMessage): IncomingMessage
    {
        $data = $rawMessage->getData();
        $this->validateNumeric($data, 'desired');
        $this->validateNumeric($data, 'current');

        return new IncomingPIDFrequencyStatus($rawMessage->getSender(), new PIDFrequencyStatus($data['desired'], $data['current']));
    }
@param NetworkRawMessage $rawMessage

@return IncomingPIDFrequencyStatus|IncomingMessage