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;
    }
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;
    }
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 ; }
Returns constant value by post status flags.

@param bool $isPending
@param bool $isDeleted
@param bool $isBanned

@return int
Returns constant value by post status flags .