src/Flexy/ShopBundle/Entity/Order/Adjustment.php line 11
<?phpnamespace App\Flexy\ShopBundle\Entity\Order;use ApiPlatform\Core\Annotation\ApiResource;use App\Flexy\ShopBundle\Repository\Order\AdjustmentRepository;use Doctrine\ORM\Mapping as ORM;#[ApiResource]#[ORM\Entity(repositoryClass: AdjustmentRepository::class)]class Adjustment{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private $id;#[ORM\Column(type: 'datetime_immutable', nullable: true)]private ?\DateTimeImmutable $createdAt = null;#[ORM\ManyToOne(targetEntity: Order::class, inversedBy: 'adjustments')]private ?\App\Flexy\ShopBundle\Entity\Order\Order $parentOrder = null;#[ORM\Column(type: 'float')]private ?float $amount = null;#[ORM\Column(type: 'string', length: 255, nullable: true)]private ?string $type = null;#[ORM\Column(type: 'string', length: 255, nullable: true)]private ?string $label = null;public function getId(): ?int{return $this->id;}public function getCreatedAt(): ?\DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(?\DateTimeImmutable $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getParentOrder(): ?Order{return $this->parentOrder;}public function setParentOrder(?Order $parentOrder): self{$this->parentOrder = $parentOrder;return $this;}public function getAmount(): ?float{return $this->amount;}public function setAmount(float $amount): self{$this->amount = $amount;return $this;}public function getType(): ?string{return $this->type;}public function setType(?string $type): self{$this->type = $type;return $this;}public function getLabel(): ?string{return $this->label;}public function setLabel(?string $label): self{$this->label = $label;return $this;}}