adoptTasks(tasks) {
        if(!tasks) { return; }
        
        for(let i in tasks) {
            switch(tasks[i].type) {
                case 'publish':
                    this.publishOn = tasks[i].date;
                    break;

                case 'unpublish':
                    this.unpublishOn = tasks[i].date;
                    break;
            }
        }
    }
/**
     * Adopts a list of tasks, turning them into un/publish dates
     *
     * @param {Array} tasks
     */
Adopts a list of tasks, turning them into un/publish dates
@param {Array} tasks
Adopts a list of tasks turning them into un / publish dates @param { Array } tasks
adoptTasks(tasks) {
        if(!tasks) { return; }
        for(let i in tasks) {
            switch(tasks[i].type) {
                case 'publish':
                    this.publishOn = tasks[i].date;
                    break;
                case 'unpublish':
                    this.unpublishOn = tasks[i].date;
                    break;
            }
        }
    }
adoptTasks ( tasks ) { if ( ! tasks ) { return ; } for ( let i in tasks ) { switch ( tasks [ i ] . type ) { case 'publish' : this . publishOn = tasks [ i ] . date ; break ; case 'unpublish' : this . unpublishOn = tasks [ i ] . date ; break ; } } }
Adopts a list of tasks, turning them into un/publish dates
 @param {Array} tasks
Adopts a list of tasks turning them into un / publish dates @param { Array } tasks