Code Duplication    Length = 25-29 lines in 2 locations

src/allejo/stakx/Event/CompilerPostRenderRepeaterPageView.php 1 location

@@ 20-48 (lines=29) @@
17
 *
18
 * @since 0.2.0
19
 */
20
class CompilerPostRenderRepeaterPageView extends Event
21
{
22
    use CompilerPostRenderTrait;
23
24
    const NAME = 'compiler.postrender.repeater_pageview';
25
26
    private $pageView;
27
    private $expandedValue;
28
29
    /**
30
     * @param string $compiledOutput
31
     */
32
    public function __construct(RepeaterPageView $pageView, ExpandedValue $expandedValue, $compiledOutput)
33
    {
34
        $this->pageView = $pageView;
35
        $this->expandedValue = $expandedValue;
36
        $this->compiledOutput = $compiledOutput;
37
    }
38
39
    public function getPageView()
40
    {
41
        return clone $this->pageView;
42
    }
43
44
    public function getExpandedValue()
45
    {
46
        return clone $this->expandedValue;
47
    }
48
}
49

src/allejo/stakx/Event/CompilerPreRenderRepeaterPageView.php 1 location

@@ 19-43 (lines=25) @@
16
 *
17
 * @since 0.2.0
18
 */
19
class CompilerPreRenderRepeaterPageView extends Event
20
{
21
    use CompilerPreRenderTrait;
22
23
    const NAME = 'compiler.prerender.repeater_pageview';
24
25
    private $pageView;
26
    private $expandedValue;
27
28
    public function __construct(RepeaterPageView $pageView, ExpandedValue $expandedValue)
29
    {
30
        $this->pageView = $pageView;
31
        $this->expandedValue = $expandedValue;
32
    }
33
34
    public function getPageView()
35
    {
36
        return clone $this->pageView;
37
    }
38
39
    public function getExpandedValue()
40
    {
41
        return clone $this->expandedValue;
42
    }
43
}
44