<?phpnamespace App\Entity;use App\Repository\CompanyAddressRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;#[ORM\Entity(repositoryClass: CompanyAddressRepository::class)]#[ORM\HasLifecycleCallbacks]class CompanyAddress extends BaseEntity{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'addresses')] #[ORM\JoinColumn(nullable: false)] private ?Company $company = null; #[ORM\Column(length: 255)] #[Assert\NotBlank(message: 'Adres başlığı boş bırakılamaz.')] private ?string $title = null; #[ORM\Column(type: 'text')] #[Assert\NotBlank(message: 'Adres satırı boş bırakılamaz.')] private ?string $addressLine = null; #[ORM\Column(length: 100)] #[Assert\NotBlank(message: 'Şehir boş bırakılamaz.')] private ?string $city = null; #[ORM\Column(length: 100)] #[Assert\NotBlank(message: 'İlçe boş bırakılamaz.')] private ?string $district = null; #[ORM\Column] private ?bool $isDefault = false; public function getId(): ?int { return $this->id; } public function getCompany(): ?Company { return $this->company; } public function setCompany(?Company $company): self { $this->company = $company; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getAddressLine(): ?string { return $this->addressLine; } public function setAddressLine(string $addressLine): self { $this->addressLine = $addressLine; return $this; } public function getCity(): ?string { return $this->city; } public function setCity(string $city): self { $this->city = $city; return $this; } public function getDistrict(): ?string { return $this->district; } public function setDistrict(string $district): self { $this->district = $district; return $this; } public function isIsDefault(): ?bool { return $this->isDefault; } public function setIsDefault(bool $isDefault): self { $this->isDefault = $isDefault; return $this; }}