<?phpnamespace App\Entity\VPN\Service;use App\Entity\BaseEntity;use App\Repository\VPN\Service\ServiceUsageRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;#[ORM\Entity(repositoryClass: ServiceUsageRepository::class)]class ServiceUsage extends BaseEntity{ #[ORM\Id] #[ORM\Column(type: 'guid', unique: true)] #[ORM\GeneratedValue(strategy: 'CUSTOM')] #[ORM\CustomIdGenerator(class: UuidGenerator::class)] private ?string $id = null; #[ORM\ManyToOne(inversedBy: 'serviceUsages')] #[ORM\JoinColumn(nullable: false)] private ?Service $service = null; #[ORM\Column(type: Types::DATE_MUTABLE)] private ?\DateTimeInterface $date = null; #[ORM\Column(type: Types::BIGINT)] private ?string $ocUsage = null; #[ORM\Column(type: Types::BIGINT)] private ?string $v2rayUsage = null; #[ORM\Column(type: Types::BIGINT)] private ?string $openUsage = null; public function __construct() { parent::__construct(); $this->setOpenUsage(0); $this->setOcUsage(0); $this->setV2rayUsage(0); } public function getId(): ?string { return $this->id; } public function getService(): ?Service { return $this->service; } public function setService(?Service $service): static { $this->service = $service; return $this; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(\DateTimeInterface $date): static { $this->date = $date; return $this; } public function getOcUsage(): ?string { return $this->ocUsage; } public function setOcUsage(string $ocUsage): static { $this->ocUsage = $ocUsage; return $this; } public function getV2rayUsage(): ?string { return $this->v2rayUsage; } public function setV2rayUsage(string $v2rayUsage): static { $this->v2rayUsage = $v2rayUsage; return $this; } public function getOpenUsage(): ?string { return $this->openUsage; } public function setOpenUsage(string $openUsage): static { $this->openUsage = $openUsage; return $this; }}