dothiv/DothivContentfulBundle

View on GitHub
Event/ContentfulEntryEvent.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Dothiv\Bundle\ContentfulBundle\Event;

use Dothiv\Bundle\ContentfulBundle\Item\ContentfulEntry;
use Symfony\Component\EventDispatcher\Event;

class ContentfulEntryEvent extends Event
{
    /**
     * @var ContentfulEntry
     */
    private $entry;

    /**
     * @param ContentfulEntry $entry
     */
    public function __construct(ContentfulEntry $entry)
    {
        $this->entry = $entry;
    }

    /**
     * @return ContentfulEntry
     */
    public function getEntry()
    {
        return $this->entry;
    }

    /**
     * @param ContentfulEntry $entry
     */
    public function setEntry($entry)
    {
        $this->entry = $entry;
    }
}