<?php

namespace App\Model\Entities\Components\Pool;

use App\Model\Entities\BaseEntity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="answer")
 */
class Answer extends BaseEntity
{
    /**
     * @ORM\Column(type="string")
     */
    protected $answerText;

    /**
     * @var Pool
     * @ORM\ManyToOne(targetEntity="Pool", inversedBy="answers")
     */
    protected $pool;

    /**
     * @var ArrayCollection
     * @ORM\OneToMany(targetEntity="Vote", mappedBy="answer")
     */
    protected $votes;
}