Event/DocumentTagEvent.php
author cavaliet
Mon, 07 Jul 2014 17:23:23 +0200
changeset 131 b39513a56cd0
parent 34 21fab44f46fe
permissions -rwxr-xr-x
adapt code for php's great memory management

<?php
/*
 * This file is part of the WikiTagBundle package.
 *
 * (c) IRI <http://www.iri.centrepompidou.fr/>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace IRI\Bundle\WikiTagBundle\Event;

use Symfony\Component\EventDispatcher\Event;
use IRI\Bundle\WikiTagBundle\Model\DocumentInterface;

class DocumentTagEvent extends Event
{
    protected $document;

    public function __construct(DocumentInterface $doc)
    {
        $this->document = $doc;
    }

    public function getDocument()
    {
        return $this->document;
    }
}