<?php
/* For licensing terms, see /license.txt */

namespace Chamilo\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * ExtraFieldOptionRelFieldOption.
 *
 * @ORM\Table(
 *     name="extra_field_option_rel_field_option",
 *     uniqueConstraints={@ORM\UniqueConstraint(name="idx", columns={"field_id", "role_id", "field_option_id", "related_field_option_id"})}
 * )
 * @ORM\Entity
 */
class ExtraFieldOptionRelFieldOption
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @var int
     *
     * @ORM\Column(name="field_option_id", type="integer", nullable=true, unique=false)
     */
    protected $fieldOptionId;

    /**
     * @var int
     *
     * @ORM\Column(name="related_field_option_id", type="integer", nullable=true, unique=false)
     */
    protected $relatedFieldOptionId;

    /**
     * @var int
     *
     * @ORM\Column(name="role_id", type="integer", nullable=true, unique=false)
     */
    protected $roleId;

    /**
     * @var int
     *
     * @ORM\Column(name="field_id", type="integer", nullable=true, unique=false)
     */
    protected $fieldId;

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

    /**
     * Set fieldId.
     *
     * @param int $fieldId
     *
     * @return ExtraFieldOptionRelFieldOption
     */
    public function setFieldId($fieldId)
    {
        $this->fieldId = $fieldId;

        return $this;
    }

    /**
     * Get fieldId.
     *
     * @return int
     */
    public function getFieldId()
    {
        return $this->fieldId;
    }

    /**
     * Set fieldOptionId.
     *
     * @param int $fieldOptionId
     *
     * @return ExtraFieldOptionRelFieldOption
     */
    public function setFieldOptionId($fieldOptionId)
    {
        $this->fieldOptionId = $fieldOptionId;

        return $this;
    }

    /**
     * Get fieldOptionId.
     *
     * @return int
     */
    public function getFieldOptionId()
    {
        return $this->fieldOptionId;
    }

    /**
     * Set relatedFieldOptionId.
     *
     * @param int $relatedFieldOptionId
     *
     * @return ExtraFieldOptionRelFieldOption
     */
    public function setRelatedFieldOptionId($relatedFieldOptionId)
    {
        $this->relatedFieldOptionId = $relatedFieldOptionId;

        return $this;
    }

    /**
     * Get relatedFieldOptionId.
     *
     * @return int
     */
    public function getRelatedFieldOptionId()
    {
        return $this->relatedFieldOptionId;
    }

    /**
     * Set roleId.
     *
     * @param int $roleId
     *
     * @return ExtraFieldOptionRelFieldOption
     */
    public function setRoleId($roleId)
    {
        $this->roleId = $roleId;

        return $this;
    }

    /**
     * Get roleId.
     *
     * @return int
     */
    public function getRoleId()
    {
        return $this->roleId;
    }
}
