<?php
namespace CoeAccountOrtPlzSw6\Core\System\Country;
use Shopware\Core\Framework\DataAbstractionLayer\Entity;
use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
use Shopware\Core\System\Country\CountryEntity;
class CountryZipValidationEntity extends Entity {
use EntityIdTrait;
/**
* @var string $countryId
*/
protected $countryId;
/**
* @var CountryEntity $country
*/
protected $country;
/**
* @var int|null $minLength
*/
protected $minLength;
/**
* @var int|null $maxLength
*/
protected $maxLength;
/**
* @var bool|null $lettersAllowed
*/
protected $lettersAllowed;
/**
* @var string|null $pattern
*/
protected $pattern;
/**
* @var bool $active
*/
protected $active = false;
/**
* @return string
*/
public function getCountryId(): string {
return $this->countryId;
}
/**
* @param string $countryId
*/
public function setCountryId(string $countryId): void {
$this->countryId = $countryId;
}
/**
* @return CountryEntity
*/
public function getCountry(): CountryEntity {
return $this->country;
}
/**
* @param CountryEntity $country
*/
public function setCountry(CountryEntity $country): void {
$this->country = $country;
}
/**
* @return int|null
*/
public function getMinLength(): ?int {
return $this->minLength;
}
/**
* @param int|null $minLength
*/
public function setMinLength(?int $minLength): void {
$this->minLength = $minLength;
}
/**
* @return int|null
*/
public function getMaxLength(): ?int {
return $this->maxLength;
}
/**
* @param int|null $maxLength
*/
public function setMaxLength(?int $maxLength): void {
$this->maxLength = $maxLength;
}
/**
* @return bool|null
*/
public function getLettersAllowed(): ?bool {
return $this->lettersAllowed;
}
/**
* @param bool|null $lettersAllowed
*/
public function setLettersAllowed(?bool $lettersAllowed): void {
$this->lettersAllowed = $lettersAllowed;
}
/**
* @return string|null
*/
public function getPattern(): ?string {
return $this->pattern;
}
/**
* @param string|null $pattern
*/
public function setPattern(?string $pattern): void {
$this->pattern = $pattern;
}
/**
* @return bool
*/
public function isActive(): bool {
return $this->active;
}
/**
* @param bool $active
*/
public function setActive(bool $active): void {
$this->active = $active;
}
}