Skip to content

Instantly share code, notes, and snippets.

@bernard-ng
Last active September 15, 2021 23:33
Show Gist options
  • Save bernard-ng/4b1ea283d9926a1ca7b5295a351d4038 to your computer and use it in GitHub Desktop.
Save bernard-ng/4b1ea283d9926a1ca7b5295a351d4038 to your computer and use it in GitHub Desktop.
<?php
declare(strict_types=1);
namespace App\Entity;
use App\Repository\DisallowCountryRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DisallowCountryRepository::class)
* @ORM\Cache("READ_ONLY")
*/
class DisallowCountry
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private ?int $id = null;
/**
* @ORM\Column(type="string", length=255)
*/
private ?string $name = null;
/**
* @ORM\Column(type="string", length=3)
*/
private ?string $iso2 = null;
/**
* @ORM\Column(type="boolean")
*/
private ?bool $has_access = true;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getIso2(): ?string
{
return $this->iso2;
}
public function setIso2(string $iso2): self
{
$this->iso2 = $iso2;
return $this;
}
public function getHasAccess(): ?bool
{
return $this->has_access;
}
public function setHasAccess(bool $has_access): self
{
$this->has_access = $has_access;
return $this;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment