<?php

/*
 * @codingStandardsIgnoreFile
 *
 * Auto generated file ignore for Code Sniffer
*/

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;

/**
 * Do not check entities with PHPMD.
 *
 * @SuppressWarnings("PHPMD")
 */
#[ORM\Table(name: 'geonamescountries')]
#[ORM\Entity]
class Country
{
    /**
     * @var int
     */
    #[ORM\Column(name: 'geonameId', type: 'integer', nullable: true)]
    #[Groups(['Member:Read'])]
    private $geonameId;

    /**
     * @var string
     */
    #[ORM\Column(name: 'name', type: 'string', length: 200, nullable: true)]
    #[Groups(['Member:Read'])]
    private $name;

    /**
     * @var string
     */
    #[ORM\Column(name: 'continent', type: 'string', length: 2, nullable: true)]
    #[Groups(['Member:Read'])]
    private $continent;

    /**
     * @var string
     */
    #[ORM\Column(name: 'country', type: 'string', length: 2)]
    #[ORM\Id]
    private $country;

    /**
     * Set geonameId.
     *
     * @param int $geonameId
     *
     * @return Country
     */
    public function setGeonameId($geonameId)
    {
        $this->geonameId = $geonameId;

        return $this;
    }

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

    /**
     * Set name.
     *
     * @param string $name
     *
     * @return Country
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name.
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set continent.
     *
     * @param string $continent
     *
     * @return Country
     */
    public function setContinent($continent)
    {
        $this->continent = $continent;

        return $this;
    }

    /**
     * Get continent.
     *
     * @return string
     */
    public function getContinent()
    {
        return $this->continent;
    }

    /**
     * Get country.
     *
     * @return string
     */
    public function getCountry()
    {
        return $this->country;
    }

    /**
     * Set country.
     *
     * @param string $country
     *
     * @return string
     */
    public function setCountry($country)
    {
        $this->country = $country;

        return $this;
    }
}
