public function getMessageType() {
    // Get message type
    $messageType = static::types()[$this->type];
    // If not incoming
    if ($this->type != static::INCOMING) {
      // Change to uppercase
      $messageType = strtoupper($messageType);
    }
    // Return
    return $messageType;
  }
public function getMessageType() {
    // Get message type
    $messageType = static::types()[$this->type];
    // If not incoming
    if ($this->type != static::INCOMING) {
      // Change to uppercase
      $messageType = strtoupper($messageType);
    }
    // Return
    return $messageType;
  }
public function getMessageType ( ) { // Get message type $ messageType = static :: types ( ) [ $ this -> type ] ; // If not incoming if ( $ this -> type != static :: INCOMING ) { // Change to uppercase $ messageType = strtoupper ( $ messageType ) ; } // Return return $ messageType ; }
Get message type
Get message type