<?php

namespace NPS\Entity;

use Doctrine\ORM\Mapping as ORM;
use NPS\Entity\UserEntity;
use NPS\Entity\KnowledgeBaseEntity;
use DateTime;

/**
 * Consultation answer entity
 * @author Lukas Korinek
 * @ORM\Entity
 * @ORM\Table(name="`consultation_answer`")
 */
class ConsultationAnswerEntity implements IEntity
{
    use TIdProperty;
    use TCreate;

    /**
     * @ORM\ManyToOne(targetEntity="ConsultationEntity", inversedBy="answers")
     * @ORM\JoinColumn(name="consultation_id", referencedColumnName="id", nullable=true)
     * @var ConsultationEntity
     */
    public $consultation;


    /**
     * Question details
     * @ORM\Column(type="text", name="question", nullable=false)
     * @var string
     */
    public $question;

    /**
     * Query number, identifies the question across the consultation
     * @ORM\Column(type="integer", name="question_number", nullable=false)
     * @var int
     */
    public $questionNumber;

    /**
     * Answer ID
     * @ORM\Column(type="string", name="answer_id", length=255, nullable=false)
     * @var string
     */
    public $answerId;

}

