for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Loevgaard\PakkelabelsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* This entity maps any (country) string to an ISO 3166 Alpha 2 country code
*
* @ORM\Entity
* @ORM\Table(name="pakkelabels_country_mapping")
*/
class CountryMapping
{
* @var int
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
protected $id;
* @var string
* @ORM\Column(type="string", unique=true)
protected $source;
* @ORM\Column(type="string")
protected $countryCode;
* @return int
public function getId(): int
return $this->id;
}
* @param int $id
* @return CountryMapping
public function setId(int $id) : CountryMapping
$this->id = $id;
return $this;
* @return string
public function getSource(): string
return $this->source;
* @param string $source
public function setSource(string $source) : CountryMapping
$this->source = $source;
public function getCountryCode(): string
return $this->countryCode;
* @param string $countryCode
public function setCountryCode(string $countryCode) : CountryMapping
$this->countryCode = $countryCode;