<?php
namespace App\Entity;
use App\Repository\UserSatRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: UserSatRepository::class)]
class UserSat
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id;
#[ORM\ManyToOne(targetEntity: UserInfo::class)]
private ?UserInfo $userInfo;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $satYear;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $satCode;
#[ORM\Column(type: 'string', length: 255)]
private ?string $satPassword;
#[ORM\Column(type: 'json', nullable: true)]
private ?array $satData;
#[ORM\Column(type: 'boolean')]
private ?bool $isConfirm;
#[ORM\Column(type: 'boolean')]
private ?bool $isDeleted;
#[ORM\ManyToOne(targetEntity: User::class)]
private ?User $userCreated;
#[ORM\Column(type: 'datetime', nullable: true)]
private ?\DateTimeInterface $timeCreated;
public function getId(): ?int
{
return $this->id;
}
public function getSatCode(): ?string
{
return $this->satCode;
}
public function setSatCode(string $satCode): self
{
$this->satCode = $satCode;
return $this;
}
public function getSatPassword(): ?string
{
return $this->satPassword;
}
public function setSatPassword(string $satPassword): self
{
$this->satPassword = $satPassword;
return $this;
}
public function getUserInfo(): ?UserInfo
{
return $this->userInfo;
}
public function setUserInfo(?UserInfo $userInfo): self
{
$this->userInfo = $userInfo;
return $this;
}
public function isIsDeleted(): ?bool
{
return $this->isDeleted;
}
public function setIsDeleted(?bool $isDeleted): self
{
$this->isDeleted = $isDeleted;
return $this;
}
public function getSatYear(): ?int
{
return $this->satYear;
}
public function setSatYear(?int $satYear): self
{
$this->satYear = $satYear;
return $this;
}
public function getSatData(): ?array
{
return $this->satData;
}
public function setSatData(?array $satData): self
{
$this->satData = $satData;
return $this;
}
public function isIsConfirm(): ?bool
{
return $this->isConfirm;
}
public function setIsConfirm(bool $isConfirm): self
{
$this->isConfirm = $isConfirm;
return $this;
}
public function getTimeCreated(): ?\DateTimeInterface
{
return $this->timeCreated;
}
public function setTimeCreated(?\DateTimeInterface $timeCreated): self
{
$this->timeCreated = $timeCreated;
return $this;
}
public function getUserCreated(): ?User
{
return $this->userCreated;
}
public function setUserCreated(?User $userCreated): self
{
$this->userCreated = $userCreated;
return $this;
}
}