PageIsUpdating.php 547 Bytes
Newer Older
1 2 3 4 5
<?php

namespace Modules\Page\Events;

use Modules\Core\Contracts\EntityIsChanging;
Nicolas Widart's avatar
Nicolas Widart committed
6
use Modules\Core\Events\AbstractEntityHook;
7 8
use Modules\Page\Entities\Page;

9
class PageIsUpdating extends AbstractEntityHook implements EntityIsChanging
10 11 12 13 14 15 16 17 18
{
    /**
     * @var Page
     */
    private $page;

    public function __construct(Page $page, array $attributes)
    {
        $this->page = $page;
19
        parent::__construct($attributes);
20 21 22 23 24 25 26 27 28 29
    }

    /**
     * @return Page
     */
    public function getPage()
    {
        return $this->page;
    }
}