dothiv/DothivContentfulBundle

View on GitHub
Event/ContentfulContentTypesEvent.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Dothiv\Bundle\ContentfulBundle\Event;

use Doctrine\Common\Collections\ArrayCollection;
use Dothiv\Bundle\ContentfulBundle\Item\ContentfulContentType;
use Symfony\Component\EventDispatcher\Event;

class ContentfulContentTypesEvent extends Event
{
    /**
     * @var ContentfulContentType[]|ArrayCollection
     */
    private $contentTypes;

    /**
     * @param ContentfulContentType[]|ArrayCollection $contentTypes
     */
    public function __construct(ArrayCollection $contentTypes)
    {
        $this->contentTypes = $contentTypes;
    }

    /**
     * @param ContentfulContentType[]|ArrayCollection $contentTypes
     */
    public function setContentTypes($contentTypes)
    {
        $this->contentTypes = $contentTypes;
    }

    /**
     * @return ContentfulContentType[]|ArrayCollection
     */
    public function getContentTypes()
    {
        return $this->contentTypes;
    }
}