protected static function getStatusByBooleanFlags(
        bool $isPending,
        bool $isDeleted,
        bool $isBanned
    ): int {
        if ($isBanned === true) {
            return PostInterface::STATUS_DELETED;
        }

        if ($isDeleted === true) {
            return PostInterface::STATUS_DELETED;
        }

        if ($isPending === true) {
            return PostInterface::STATUS_PENDING_MODERATION;
        }

        return PostInterface::STATUS_PUBLISHED;
    }