~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Event/LayoutBuildEvent.php

  • Committer: Dan Garner
  • Date: 2016-02-18 16:07:16 UTC
  • mfrom: (454.4.137)
  • Revision ID: git-v1:8867f12675bc9e0e67e7e622c80da7471b9f294a
Merge pull request #139 from dasgarner/feature/nested-display-groups

Feature/nested display groups

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/*
3
 
 * Spring Signage Ltd - http://www.springsignage.com
4
 
 * Copyright (C) 2016 Spring Signage Ltd
5
 
 * (LayoutBuildEvent.php)
6
 
 */
7
 
 
8
 
 
9
 
namespace Xibo\Event;
10
 
 
11
 
 
12
 
use Symfony\Component\EventDispatcher\Event;
13
 
use Xibo\Entity\Layout;
14
 
 
15
 
/**
16
 
 * Class LayoutBuildEvent
17
 
 * @package Xibo\Event
18
 
 */
19
 
class LayoutBuildEvent extends Event
20
 
{
21
 
    const NAME = 'layout.build';
22
 
 
23
 
    /** @var  Layout */
24
 
    protected $layout;
25
 
 
26
 
    /** @var  \DOMDocument */
27
 
    protected $document;
28
 
 
29
 
    /**
30
 
     * LayoutBuildEvent constructor.
31
 
     * @param $layout
32
 
     * @param $document
33
 
     */
34
 
    public function __construct($layout, $document)
35
 
    {
36
 
        $this->layout = $layout;
37
 
        $this->document = $document;
38
 
    }
39
 
 
40
 
    /**
41
 
     * @return \DOMDocument
42
 
     */
43
 
    public function getDocument()
44
 
    {
45
 
        return $this->document;
46
 
    }
47
 
}
 
 
b'\\ No newline at end of file'