src/Submarine/PagesBundle/Entity/PageB24UpdateTime.php line 11

Open in your IDE?
  1. <?php
  2. namespace Submarine\PagesBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity
  6.  * @ORM\Table(name="page_b24update_time")
  7.  */
  8. class PageB24UpdateTime
  9. {
  10.     /**
  11.      * @var integer
  12.      *
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private int $id;
  18.     /**
  19.      * @var Page
  20.      *
  21.      * @ORM\OneToOne(targetEntity="Submarine\PagesBundle\Entity\Page", inversedBy="pageB24UpdateTime")
  22.      * @ORM\JoinColumn(name="page_id", referencedColumnName="id", onDelete="CASCADE")
  23.      */
  24.     private Page $page;
  25.     /**
  26.      * @ORM\Column(type="integer", nullable=true)
  27.      */
  28.     private ?int $b24StatusUpdate;
  29.     /**
  30.      * @ORM\Column(type="integer", nullable=true)
  31.      */
  32.     private ?int $b24PriceUpdate;
  33.     /**
  34.      * @param Page $page
  35.      */
  36.     public function __construct(Page $page)
  37.     {
  38.         $this->page $page;
  39.         $this->b24PriceUpdate null;
  40.         $this->b24StatusUpdate null;
  41.     }
  42.     /**
  43.      * @return int
  44.      */
  45.     public function getId(): int
  46.     {
  47.         return $this->id;
  48.     }
  49.     /**
  50.      * @param int $id
  51.      */
  52.     public function setId(int $id): void
  53.     {
  54.         $this->id $id;
  55.     }
  56.     /**
  57.      * @return Page
  58.      */
  59.     public function getPage(): Page
  60.     {
  61.         return $this->page;
  62.     }
  63.     /**
  64.      * @param Page $page
  65.      */
  66.     public function setPage(Page $page): void
  67.     {
  68.         $this->page $page;
  69.     }
  70.     /**
  71.      * @return int|null
  72.      */
  73.     public function getB24StatusUpdate(): ?int
  74.     {
  75.         return $this->b24StatusUpdate;
  76.     }
  77.     /**
  78.      * @param int|null $b24StatusUpdate
  79.      */
  80.     public function setB24StatusUpdate(?int $b24StatusUpdate): void
  81.     {
  82.         $this->b24StatusUpdate $b24StatusUpdate;
  83.     }
  84.     /**
  85.      * @return int|null
  86.      */
  87.     public function getB24PriceUpdate(): ?int
  88.     {
  89.         return $this->b24PriceUpdate;
  90.     }
  91.     /**
  92.      * @param int|null $b24PriceUpdate
  93.      */
  94.     public function setB24PriceUpdate(?int $b24PriceUpdate): void
  95.     {
  96.         $this->b24PriceUpdate $b24PriceUpdate;
  97.     }
  98. }