src/Entity/UpdateChecker.php line 11
<?phpnamespace App\Entity;use App\Repository\UpdateCheckerRepository;use DateTimeImmutable;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: UpdateCheckerRepository::class)]class UpdateChecker{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 32)]private ?string $type = null;#[ORM\Column(type: Types::TEXT)]private ?string $update_data = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $git_data = null;#[ORM\OneToOne(mappedBy: 'updateChecker', targetEntity: Product::class)]protected Product $product;#[ORM\Column]private ?DateTimeImmutable $created_at = null;#[ORM\Column(options: ['default' => true])]private ?bool $ratingAktiv = null;#[ORM\Column(options: ['default' => true])]private ?bool $languageAktiv = null;#[ORM\Column(length: 64, nullable: true, options: ['default' => 'custom_section'])]private ?string $tabBezeichnung = null;#[ORM\Column(options: ['default' => true])]private ?bool $aktive = null;public function __construct(){$this->created_at = new DateTimeImmutable();$this->aktive = true;}public function getId(): ?int{return $this->id;}public function getType(): ?string{return $this->type;}public function setType(string $type): self{$this->type = $type;return $this;}public function getUpdateData(): ?string{return $this->update_data;}public function setUpdateData(string $update_data): self{$this->update_data = $update_data;return $this;}public function getCreatedAt(): ?DateTimeImmutable{return $this->created_at;}public function setCreatedAt(DateTimeImmutable $created_at): self{$this->created_at = $created_at;return $this;}public function getProduct(): ?Product{return $this->product;}public function setProduct(?Product $product): self{// unset the owning side of the relation if necessaryif ($product === null && $this->product !== null) {$this->product->setUpdateChecker(null);}// set the owning side of the relation if necessaryif ($product !== null && $product->getUpdateChecker() !== $this) {$product->setUpdateChecker($this);}$this->product = $product;return $this;}public function getGitData(): ?string{if(!$this->git_data){return '';}return $this->git_data;}public function setGitData(string $git_data): self{$this->git_data = $git_data;return $this;}public function isRatingAktiv(): ?bool{return $this->ratingAktiv;}public function setRatingAktiv(bool $ratingAktiv): self{$this->ratingAktiv = $ratingAktiv;return $this;}public function isLanguageAktiv(): ?bool{return $this->languageAktiv;}public function setLanguageAktiv(bool $languageAktiv): self{$this->languageAktiv = $languageAktiv;return $this;}public function getTabBezeichnung(): ?string{return $this->tabBezeichnung;}public function setTabBezeichnung(?string $tabBezeichnung): self{$this->tabBezeichnung = $tabBezeichnung;return $this;}public function isAktive(): ?bool{return $this->aktive;}public function setAktive(bool $aktive): self{$this->aktive = $aktive;return $this;}}