src/Entity/Page.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\PageRepository")
  6.  * @ORM\Table(name="pages", indexes={@ORM\Index(name="id_index", columns={"id"})})
  7.  */
  8. class Page
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\Column(type="integer")
  13.      * @ORM\GeneratedValue(strategy="AUTO")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="text", length=100, nullable=false)
  18.      */
  19.     private $name;
  20.     /**
  21.      * @ORM\Column(type="text", length=2048, nullable=false)
  22.      */
  23.     private $url;
  24.     /**
  25.      * @ORM\Column(type="boolean", nullable=false)
  26.      */
  27.     private $banner_click;
  28.     /**
  29.      * @ORM\Column(type="string", length=250, nullable=true)
  30.      */
  31.     private $banner_xpath;
  32.     /**
  33.      * @ORM\Column(type="boolean", nullable=false)
  34.      */
  35.     private $disable_remote_screenshot;
  36.     /**
  37.      * @ORM\Column(type="text", length=100, nullable=true)
  38.      */
  39.     private $screenshot;
  40.     /**
  41.      * @ORM\Column(type="datetime", nullable=true)
  42.      */
  43.     private $screenshot_date;
  44.     /**
  45.      * @ORM\Column(type="boolean", nullable=false)
  46.      */
  47.     private $screenshot_force;
  48.     /**
  49.      * @ORM\Column(type="json", nullable=true)
  50.      */
  51.     private $server;
  52.     /**
  53.      * @ORM\Column(type="boolean", nullable=false)
  54.      */
  55.     private $status;
  56.     /**
  57.      * @ORM\ManyToOne(targetEntity="App\Entity\Brand", inversedBy="pages")
  58.      * @ORM\JoinColumn(name="brand_id", referencedColumnName="id", nullable=false)
  59.      */
  60.     private $brand;
  61.     /**
  62.      * @ORM\ManyToOne(targetEntity="App\Entity\Country", inversedBy="pages")
  63.      * @ORM\JoinColumn(name="country_id", referencedColumnName="id")
  64.      */
  65.     private $country;
  66.     public function getId(): ?int
  67.     {
  68.         return $this->id;
  69.     }
  70.     public function getName(): ?string
  71.     {
  72.         return $this->name;
  73.     }
  74.     public function setName(string $name): self
  75.     {
  76.         $this->name $name;
  77.         return $this;
  78.     }
  79.     public function getUrl(): ?string
  80.     {
  81.         return $this->url;
  82.     }
  83.     public function setUrl(string $url): self
  84.     {
  85.         $this->url $url;
  86.         return $this;
  87.     }
  88.     public function getBannerClick(): ?bool
  89.     {
  90.         return $this->banner_click;
  91.     }
  92.     public function setBannerClick(bool $banner_click): self
  93.     {
  94.         $this->banner_click $banner_click;
  95.         return $this;
  96.     }
  97.     public function getBannerXpath(): ?string
  98.     {
  99.         return $this->banner_xpath;
  100.     }
  101.     public function setBannerXpath(?string $banner_xpath): self
  102.     {
  103.         $this->banner_xpath $banner_xpath;
  104.         return $this;
  105.     }
  106.     public function getDisableRemoteScreenshot(): ?bool
  107.     {
  108.         return $this->disable_remote_screenshot;
  109.     }
  110.     public function setDisableRemoteScreenshot(bool $disable_remote_screenshot): self
  111.     {
  112.         $this->disable_remote_screenshot $disable_remote_screenshot;
  113.         return $this;
  114.     }
  115.     public function getScreenshot(): ?string
  116.     {
  117.         return $this->screenshot;
  118.     }
  119.     public function setScreenshot(?string $screenshot): self
  120.     {
  121.         $this->screenshot $screenshot;
  122.         return $this;
  123.     }
  124.     public function getScreenshotDate(): ?\DateTimeInterface
  125.     {
  126.         return $this->screenshot_date;
  127.     }
  128.     public function setScreenshotDate(?\DateTimeInterface $screenshot_date): self
  129.     {
  130.         $this->screenshot_date $screenshot_date;
  131.         return $this;
  132.     }
  133.     public function getScreenshotForce(): ?bool
  134.     {
  135.         return $this->screenshot_force;
  136.     }
  137.     public function setScreenshotForce(bool $screenshot_force): self
  138.     {
  139.         $this->screenshot_force $screenshot_force;
  140.         return $this;
  141.     }
  142.     public function getServer(): ?array
  143.     {
  144.         return $this->server;
  145.     }
  146.     public function setServer(?array $server): self
  147.     {
  148.         $this->server $server;
  149.         return $this;
  150.     }
  151.     public function getStatus(): ?bool
  152.     {
  153.         return $this->status;
  154.     }
  155.     public function setStatus(bool $status): self
  156.     {
  157.         $this->status $status;
  158.         return $this;
  159.     }
  160.     public function getBrand(): ?Brand
  161.     {
  162.         return $this->brand;
  163.     }
  164.     public function setBrand(?Brand $brand): self
  165.     {
  166.         $this->brand $brand;
  167.         return $this;
  168.     }
  169.     public function getCountry(): ?Country
  170.     {
  171.         return $this->country;
  172.     }
  173.     public function setCountry(?Country $country): self
  174.     {
  175.         $this->country $country;
  176.         return $this;
  177.     }
  178. }