src/Entity/Delete/HsCode.php line 13
<?php
namespace App\Entity\Delete;
use DateTimeInterface;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Table(name: 'expediting_z_hs_code')]
#[ORM\Entity]
class HsCode
{
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
#[ORM\SequenceGenerator(sequenceName: 'expediting_z_hs_code_id_seq')]
#[ORM\Column(type: Types::INTEGER)]
private int $id;
#[Assert\NotBlank]
#[Assert\Type(type: Types::STRING)]
#[ORM\Column(type: Types::STRING)]
private string $materialNumber;
#[Assert\NotBlank]
#[Assert\Type(type: Types::STRING)]
#[ORM\Column(type: Types::STRING)]
private ?string $value = null;
#[Gedmo\Timestampable(on: 'create')]
#[Assert\Type(type: DateTimeInterface::class)]
#[ORM\Column(type: Types::DATETIMETZ_MUTABLE, options: ['default' => 'CURRENT_TIMESTAMP'])]
protected ?DateTimeInterface $createdAt = null;
public function getId(): ?int
{
return $this->id;
}
public function getMaterialNumber(): ?string
{
return $this->materialNumber;
}
public function setMaterialNumber(?string $materialNumber): static
{
$this->materialNumber = $materialNumber;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): static
{
$this->value = $value;
return $this;
}
public function getCreatedAt(): ?DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?DateTimeInterface $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
}