<?php
namespace App\Entity\ExternalPartner\Gohiring;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*
* @ORM\Table(
* name="gohiring_new_job_posting_data",
* )
*/
class GohiringNewJobPostingData
{
public function __construct(
string $postingId,
string $newPostingData
) {
$this->postingId = $postingId;
$this->newPostingData = $newPostingData;
}
/**
* @ORM\GeneratedValue(strategy="CUSTOM")
*
* @ORM\CustomIdGenerator(class="App\Utility\DatabaseIdGenerator")
*
* @ORM\Column(name="id", type="guid")
*
* @ORM\Id
*/
private ?string $id = null;
public function getId(): ?string
{
return $this->id;
}
/**
* @ORM\Column(name="posting_id", type="string", length=255, unique=true)
*/
private string $postingId;
public function setPostingId(string $postingId): void
{
$this->postingId = $postingId;
}
public function getPostingId(): string
{
return $this->postingId;
}
/**
* @ORM\Column(name="posting_data_new", type="json", nullable=false)
*/
private string $newPostingData;
public function setNewPostingData(string $newPostingData): void
{
$this->newPostingData = $newPostingData;
}
public function getNewPostingData(): string
{
return $this->newPostingData;
}
}