symfony-playground/src/Entity/MerParaDT.php

51 lines
1000 B
PHP
Raw Normal View History

2022-05-23 13:22:36 +00:00
<?php
namespace App\Entity;
use App\Repository\MerParaDTRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MerParaDTRepository::class)]
2022-05-25 07:54:28 +00:00
class MerParaDT extends MerService implements OttInterface
2022-05-23 13:22:36 +00:00
{
// #[ORM\Id]
// #[ORM\GeneratedValue]
// #[ORM\Column(type: 'integer')]
// private $id;
#[ORM\Column(type: 'string', length: 255)]
2022-05-24 08:06:04 +00:00
private $api_key;
2022-05-23 13:22:36 +00:00
2022-05-25 10:05:39 +00:00
#[ORM\OneToOne(targetEntity: MerDT::class, cascade: ['persist'])]
private MerDT $platform;
2022-05-23 13:22:36 +00:00
// public function getId(): ?int
// {
// return $this->id;
// }
public function getApiKey(): ?string
{
2022-05-24 08:06:04 +00:00
return $this->api_key;
2022-05-23 13:22:36 +00:00
}
public function setApiKey(string $apiKey): self
{
2022-05-24 08:06:04 +00:00
$this->api_key = $apiKey;
2022-05-23 13:22:36 +00:00
return $this;
}
2022-05-25 10:05:39 +00:00
public function getPlatform(): ?MerDT
{
return $this->platform;
}
public function setPlatform(?MerDT $platform): self
{
$this->platform = $platform;
return $this;
}
2022-05-23 13:22:36 +00:00
}