TryGhost/Ghost

View on GitHub
ghost/post-events/src/PostsBulkDestroyedEvent.ts

Summary

Maintainability
A
3 hrs
Test Coverage
export class PostsBulkDestroyedEvent {
    data: string[];
    timestamp: Date;

    constructor(data: string[], timestamp: Date) {
        this.data = data;
        this.timestamp = timestamp;
    }

    static create(data: string[], timestamp = new Date()) {
        return new PostsBulkDestroyedEvent(data, timestamp);
    }
}