<?php
namespace Submarine\PagesBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="page_b24update_time")
*/
class PageB24UpdateTime
{
/**
* @var integer
*
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private int $id;
/**
* @var Page
*
* @ORM\OneToOne(targetEntity="Submarine\PagesBundle\Entity\Page", inversedBy="pageB24UpdateTime")
* @ORM\JoinColumn(name="page_id", referencedColumnName="id", onDelete="CASCADE")
*/
private Page $page;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private ?int $b24StatusUpdate;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private ?int $b24PriceUpdate;
/**
* @param Page $page
*/
public function __construct(Page $page)
{
$this->page = $page;
$this->b24PriceUpdate = null;
$this->b24StatusUpdate = null;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return Page
*/
public function getPage(): Page
{
return $this->page;
}
/**
* @param Page $page
*/
public function setPage(Page $page): void
{
$this->page = $page;
}
/**
* @return int|null
*/
public function getB24StatusUpdate(): ?int
{
return $this->b24StatusUpdate;
}
/**
* @param int|null $b24StatusUpdate
*/
public function setB24StatusUpdate(?int $b24StatusUpdate): void
{
$this->b24StatusUpdate = $b24StatusUpdate;
}
/**
* @return int|null
*/
public function getB24PriceUpdate(): ?int
{
return $this->b24PriceUpdate;
}
/**
* @param int|null $b24PriceUpdate
*/
public function setB24PriceUpdate(?int $b24PriceUpdate): void
{
$this->b24PriceUpdate = $b24PriceUpdate;
}
}