<?php
namespace App\Entity;
use App\Repository\XeroTrackingOptionRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: XeroTrackingOptionRepository::class)]
class XeroTrackingOption
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $name;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $xeroId;
#[ORM\ManyToOne(targetEntity: XeroTrackingCategory::class, inversedBy: 'xeroTrackingOptions')]
private $xeroTrackingCategory;
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 getXeroId(): ?string
{
return $this->xeroId;
}
public function setXeroId(?string $xeroId): self
{
$this->xeroId = $xeroId;
return $this;
}
public function getXeroTrackingCategory(): ?XeroTrackingCategory
{
return $this->xeroTrackingCategory;
}
public function setXeroTrackingCategory(?XeroTrackingCategory $xeroTrackingCategory): self
{
$this->xeroTrackingCategory = $xeroTrackingCategory;
return $this;
}
}