<?php
/**
 * MetaTagSet Entity
 * 
 * @author Visual Media 
 */
namespace VisualM\TagManagerBundle\Entity;

use VisualM\TagManagerBundle\Model\MetaTagSetModel;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * MetaTagSet Entity
 *
 * @ORM\Entity(repositoryClass="MetaTagSetRepository")
 * @ORM\Table(name="meta_tag_set")
 *
 * @author Visual Media 
 */
class MetaTagSet extends MetaTagSetModel
{
    /**
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(name="naam", type="string", nullable = false)
     * @Assert\NotBlank(message = "meta_tag_set.naam.not_blank")
     */
    protected $naam;

    /**
     * @ORM\Column(name="kiesbaar", type="boolean", nullable = false)
     * @Assert\NotBlank(message = "meta_tag_set.kiesbaar.not_blank")
     */
    protected $kiesbaar = true;

    /**
     * @ORM\Column(name="content_types", type="simple_array", nullable = true)
     */
    protected $contentTypes = [];

    /**
     * @ORM\OneToMany(targetEntity="MetaTagPreset", mappedBy="metaTagSet", orphanRemoval=true)
     * @Assert\Valid
     * @var ArrayCollection
     */
    protected $metaTagPresets;

    /**
     * Constructor
     */
    public function __construct()
    {
        $this->metaTagPresets = new ArrayCollection();
    }

    /**
     * Get Id
     *
     * @return int Id
     **/
    public function getId()
    {
        return $this->id;
    }

    /**
     * Get Naam
     *
     * @return string Naam
     **/
    public function getNaam()
    {
        return $this->naam;
    }

    /**
     * Set Naam
     *
     * @param string $naam Naam
     *
     * @return void
     **/
    public function setNaam($naam)
    {
        $this->naam = $naam;
    }

    /**
     * Get Kiesbaar
     *
     * @return bool Kiesbaar
     **/
    public function getKiesbaar()
    {
        return $this->kiesbaar;
    }

    /**
     * Set Kiesbaar
     *
     * @param bool $kiesbaar Kiesbaar
     *
     * @return void
     **/
    public function setKiesbaar($kiesbaar)
    {
        $this->kiesbaar = $kiesbaar;
    }

    /**
     * Get Content Types
     *
     * @return array Content Types
     **/
    public function getContentTypes()
    {
        return $this->contentTypes;
    }

    /**
     * Set Content Types
     *
     * @param array $contentTypes Content Types
     *
     * @return void
     **/
    public function setContentTypes($contentTypes)
    {
        $this->contentTypes = $contentTypes;
    }

    /**
     * Get MetaTag Presets
     *
     * @return ArrayCollection MetaTag Presets
     **/
    public function getMetaTagPresets()
    {
        return $this->metaTagPresets;
    }

    /**
     * Set MetaTag Presets
     *
     * @param ArrayCollection $metaTagPresets MetaTag Presets
     *
     * @return void
     **/
    public function setMetaTagPresets($metaTagPresets)
    {
        $this->metaTagPresets = $metaTagPresets;
    }
}
