<NME> RepositoryEventBase.php
<BEF> <?php
namespace Prettus\Repository\Events;

use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\RepositoryInterface;

/**
 * Class RepositoryEventBase
 * @package Prettus\Repository\Events
 * @author Anderson Andrade <contato@andersonandra.de>
 */
abstract class RepositoryEventBase
{
    /**
     * @var Model
     */
    protected $model;

    /**
     * @var RepositoryInterface
     */
    protected $repository;

    /**
     * @var string
     */
    protected $action;

    /**
     * @param RepositoryInterface $repository
     * @param Model               $model
     */
    public function __construct(RepositoryInterface $repository, Model $model)
    {
        $this->repository = $repository;
        $this->model = $model;
    }

    /**
     * @return Model
     */
    public function getModel()
    {
        return $this->model;
    }

    /**
     * @return RepositoryInterface
     */
    public function getRepository()
    {
        return $this->repository;
    }

    /**
     * @return string
     */
    public function getAction()
    {
        return $this->action;
    }
}

<MSG> Add additional events (#709)

* Add additional events

Signed-off-by: Lloric Mayuga Garcia <9509b8e668f4b9da0168a088621dc6e172b701a7@gmail.com>

* docs

Signed-off-by: Lloric Mayuga Garcia <9509b8e668f4b9da0168a088621dc6e172b701a7@gmail.com>
<DFF> @@ -30,14 +30,14 @@ abstract class RepositoryEventBase
      * @param RepositoryInterface $repository
      * @param Model               $model
      */
-    public function __construct(RepositoryInterface $repository, Model $model)
+    public function __construct(RepositoryInterface $repository, Model $model = null)
     {
         $this->repository = $repository;
         $this->model = $model;
     }
 
     /**
-     * @return Model
+     * @return Model|array
      */
     public function getModel()
     {

Add additional events (#709)