| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class PageViewEvent extends Event |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var PageInterface |
||
| 17 | */ |
||
| 18 | private $page; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Constructs the event for the specified page. |
||
| 22 | * |
||
| 23 | * @param \Zicht\Bundle\PageBundle\Model\PageInterface $page |
||
| 24 | */ |
||
| 25 | 6 | public function __construct(PageInterface $page) |
|
| 28 | 6 | } |
|
| 29 | |||
| 30 | |||
| 31 | /** |
||
| 32 | * Return the page attached to this event |
||
| 33 | * |
||
| 34 | * @return \Zicht\Bundle\PageBundle\Model\PageInterface |
||
| 35 | */ |
||
| 36 | 3 | public function getPage() |
|
| 41 |