public static function getValidTypes($type)
    {
        if (MailTypes::TYPE_PRINT === $type) {
            return [MailTypes::TYPE_ALL, MailTypes::TYPE_PRINT];
        }
        if (MailTypes::TYPE_SCREEN === $type) {
            return [MailTypes::TYPE_ALL, MailTypes::TYPE_SCREEN];
        }

        return [MailTypes::TYPE_ALL, MailTypes::TYPE_PRINT, MailTypes::TYPE_SCREEN];
    }
public static function getValidTypes($type)
    {
        if (MailTypes::TYPE_PRINT === $type) {
            return [MailTypes::TYPE_ALL, MailTypes::TYPE_PRINT];
        }
        if (MailTypes::TYPE_SCREEN === $type) {
            return [MailTypes::TYPE_ALL, MailTypes::TYPE_SCREEN];
        }

        return [MailTypes::TYPE_ALL, MailTypes::TYPE_PRINT, MailTypes::TYPE_SCREEN];
    }
public static function getValidTypes ( $ type ) { if ( MailTypes :: TYPE_PRINT === $ type ) { return [ MailTypes :: TYPE_ALL , MailTypes :: TYPE_PRINT ] ; } if ( MailTypes :: TYPE_SCREEN === $ type ) { return [ MailTypes :: TYPE_ALL , MailTypes :: TYPE_SCREEN ] ; } return [ MailTypes :: TYPE_ALL , MailTypes :: TYPE_PRINT , MailTypes :: TYPE_SCREEN ] ; }
Get the valid mail types.

@param string $type The mail type defined in MailTypes::TYPE_*

@return string[]
Get the valid mail types .