<?php

namespace CleverReach\WooCommerce\IntegrationCore\BusinessLogic\Form\Events;

use CleverReach\WooCommerce\IntegrationCore\BusinessLogic\Form\Entities\Form;
use CleverReach\WooCommerce\IntegrationCore\Infrastructure\Utility\Events\Event;

/**
 * Class AfterFormCacheDeletedEvent
 *
 * @package CleverReach\WooCommerce\IntegrationCore\BusinessLogic\Form\Events
 */
class AfterFormCacheDeletedEvent extends Event
{
    const CLASS_NAME = __CLASS__;
    /**
     * @var \CleverReach\WooCommerce\IntegrationCore\BusinessLogic\Form\Entities\Form
     */
    private $form;

    /**
     * AfterFormCacheDeletedEvent constructor.
     *
     * @param \CleverReach\WooCommerce\IntegrationCore\BusinessLogic\Form\Entities\Form $form
     */
    public function __construct(Form $form)
    {
        $this->form = $form;
    }

    /**
     * @return \CleverReach\WooCommerce\IntegrationCore\BusinessLogic\Form\Entities\Form
     */
    public function getForm()
    {
        return $this->form;
    }
}
