|
34
|
1 |
<?php |
|
|
2 |
/* |
|
|
3 |
* This file is part of the WikiTagBundle package. |
|
|
4 |
* |
|
|
5 |
* (c) IRI <http://www.iri.centrepompidou.fr/> |
|
|
6 |
* |
|
|
7 |
* For the full copyright and license information, please view the LICENSE |
|
|
8 |
* file that was distributed with this source code. |
|
|
9 |
*/ |
|
|
10 |
namespace IRI\Bundle\WikiTagBundle\Event; |
|
|
11 |
|
|
|
12 |
use Symfony\Component\EventDispatcher\Event; |
|
|
13 |
use IRI\Bundle\WikiTagBundle\Model\DocumentInterface; |
|
|
14 |
|
|
|
15 |
class DocumentTagEvent extends Event |
|
|
16 |
{ |
|
|
17 |
protected $document; |
|
|
18 |
|
|
|
19 |
public function __construct(DocumentInterface $doc) |
|
|
20 |
{ |
|
|
21 |
$this->document = $doc; |
|
|
22 |
} |
|
|
23 |
|
|
|
24 |
public function getDocument() |
|
|
25 |
{ |
|
|
26 |
return $this->document; |
|
|
27 |
} |
|
|
28 |
} |