public function analyseUNH(array $line)
    {
        if (\count($line) < 3) {
            return;
        }

        $lineElement = $line[2];
        if (!\is_array($lineElement)) {
            $this->messageFormat = $lineElement;

            return;
        }

        $this->messageFormat = $lineElement[0];
        $this->messageDirectory = $lineElement[2];
    }
public function analyseUNH(array $line)
    {
        if (\count($line) < 3) {
            return;
        }

        $lineElement = $line[2];
        if (!\is_array($lineElement)) {
            $this->messageFormat = $lineElement;

            return;
        }

        $this->messageFormat = $lineElement[0];
        $this->messageDirectory = $lineElement[2];
    }
public function analyseUNH ( array $ line ) { if ( \ count ( $ line ) < 3 ) { return ; } $ lineElement = $ line [ 2 ] ; if ( ! \ is_array ( $ lineElement ) ) { $ this -> messageFormat = $ lineElement ; return ; } $ this -> messageFormat = $ lineElement [ 0 ] ; $ this -> messageDirectory = $ lineElement [ 2 ] ; }
Identify message type

@param string[] $line UNH segment

@return void
Identify message type