<?php

namespace Bixo\Niche\Workflow;

use Bixo\Niche\Models\Niche;
use Bixo\Niche\Notifications\NicheWorkflow as NicheNotifyer;
use Notification;

class NicheNotification
{

    /**
     * Send the notification to the users after complete.
     *
     * @param Niche $niche
     *
     * @return void
     */
    public function complete(Niche $niche)
    {
        return Notification::send($niche->user, new NicheNotifyer($niche, 'complete'));;
    }

    /**
     * Send the notification to the users after verify.
     *
     * @param Niche $niche
     *
     * @return void
     */
    public function verify(Niche $niche)
    {
        return Notification::send($niche->user, new NicheNotifyer($niche, 'verify'));;
    }

    /**
     * Send the notification to the users after approve.
     *
     * @param Niche $niche
     *
     * @return void
     */
    public function approve(Niche $niche)
    {
        return Notification::send($niche->user, new NicheNotifyer($niche, 'approve'));;

    }

    /**
     * Send the notification to the users after publish.
     *
     * @param Niche $niche
     *
     * @return void
     */
    public function publish(Niche $niche)
    {
        return Notification::send($niche->user, new NicheNotifyer($niche, 'publish'));;
    }

    /**
     * Send the notification to the users after archive.
     *
     * @param Niche $niche
     *
     * @return void
     */
    public function archive(Niche $niche)
    {
        return Notification::send($niche->user, new NicheNotifyer($niche, 'archive'));;

    }

    /**
     * Send the notification to the users after unpublish.
     *
     * @param Niche $niche
     *
     * @return void
     */
    public function unpublish(Niche $niche)
    {
        return Notification::send($niche->user, new NicheNotifyer($niche, 'unpublish'));;

    }
}