src/Entity/AppInfo.php line 18

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: varnit
  5.  * Date: 03/12/16
  6.  * Time: 12:35 PM
  7.  */
  8. namespace App\Entity;
  9. use Doctrine\DBAL\Types\Types;
  10. use Doctrine\ORM\Mapping as ORM;
  11. /**
  12.  * @ORM\Entity(repositoryClass="App\Repository\AppInfoRepository")
  13.  * @ORM\Table(indexes={@ORM\Index(name="app_id", columns={"app_id"})})
  14.  */
  15. class AppInfo {
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\Column(type="string", nullable=false)
  24.      */
  25.     private $appId;
  26.     /**
  27.      * @ORM\Column(type="string", length=1999, nullable=false)
  28.      */
  29.     private $url;
  30.     /**
  31.      * @ORM\Column(type="string", nullable=true)
  32.      */
  33.     private $icon;
  34.     /**
  35.      * @ORM\Column(type="string", nullable=true)
  36.      */
  37.     private $title;
  38.     /**
  39.      * @ORM\Column(type="string", nullable=true)
  40.      */
  41.     private $author;
  42.     /**
  43.      * @ORM\Column(type="text", nullable=true)
  44.      */
  45.     private $description;
  46.     /**
  47.      * @ORM\Column(type="datetime", options={"default"="CURRENT_TIMESTAMP"})
  48.      */
  49.     private $dateInserted;
  50.     /**
  51.      * @ORM\Column(type="string", nullable=true)
  52.      */
  53.     private $platform;
  54.     /**
  55.      * @ORM\Column(type="json", nullable=true)
  56.      */
  57.     private $categories;
  58.     /**
  59.      * Get id
  60.      *
  61.      * @return integer
  62.      */
  63.     public function getId()
  64.     {
  65.         return $this->id;
  66.     }
  67.     /**
  68.      * Set appId
  69.      *
  70.      * @param string $appId
  71.      *
  72.      * @return AppInfo
  73.      */
  74.     public function setAppId($appId)
  75.     {
  76.         $this->appId $appId;
  77.         return $this;
  78.     }
  79.     /**
  80.      * Get appId
  81.      *
  82.      * @return string
  83.      */
  84.     public function getAppId()
  85.     {
  86.         return $this->appId;
  87.     }
  88.     /**
  89.      * Set url
  90.      *
  91.      * @param string $url
  92.      *
  93.      * @return AppInfo
  94.      */
  95.     public function setUrl($url)
  96.     {
  97.         $this->url $url;
  98.         return $this;
  99.     }
  100.     /**
  101.      * Get url
  102.      *
  103.      * @return string
  104.      */
  105.     public function getUrl()
  106.     {
  107.         return $this->url;
  108.     }
  109.     /**
  110.      * Set icon
  111.      *
  112.      * @param string $icon
  113.      *
  114.      * @return AppInfo
  115.      */
  116.     public function setIcon($icon)
  117.     {
  118.         $this->icon $icon;
  119.         return $this;
  120.     }
  121.     /**
  122.      * Get icon
  123.      *
  124.      * @return string
  125.      */
  126.     public function getIcon()
  127.     {
  128.         return $this->icon;
  129.     }
  130.     /**
  131.      * Set title
  132.      *
  133.      * @param string $title
  134.      *
  135.      * @return AppInfo
  136.      */
  137.     public function setTitle($title)
  138.     {
  139.         $this->title $title;
  140.         return $this;
  141.     }
  142.     /**
  143.      * Get title
  144.      *
  145.      * @return string
  146.      */
  147.     public function getTitle()
  148.     {
  149.         return $this->title;
  150.     }
  151.     /**
  152.      * Set author
  153.      *
  154.      * @param string $author
  155.      *
  156.      * @return AppInfo
  157.      */
  158.     public function setAuthor($author)
  159.     {
  160.         $this->author $author;
  161.         return $this;
  162.     }
  163.     /**
  164.      * Get author
  165.      *
  166.      * @return string
  167.      */
  168.     public function getAuthor()
  169.     {
  170.         return $this->author;
  171.     }
  172.     /**
  173.      * Set description
  174.      *
  175.      * @param string $description
  176.      *
  177.      * @return AppInfo
  178.      */
  179.     public function setDescription($description)
  180.     {
  181.         $this->description $description;
  182.         return $this;
  183.     }
  184.     /**
  185.      * Get description
  186.      *
  187.      * @return string
  188.      */
  189.     public function getDescription()
  190.     {
  191.         return $this->description;
  192.     }
  193.     /**
  194.      * Set dateInserted
  195.      *
  196.      * @param \DateTime $dateInserted
  197.      *
  198.      * @return AppInfo
  199.      */
  200.     public function setDateInserted($dateInserted)
  201.     {
  202.         $this->dateInserted $dateInserted;
  203.         return $this;
  204.     }
  205.     /**
  206.      * Get dateInserted
  207.      *
  208.      * @return \DateTime
  209.      */
  210.     public function getDateInserted()
  211.     {
  212.         return $this->dateInserted;
  213.     }
  214.     /**
  215.      * Set platform
  216.      *
  217.      * @param string $platform
  218.      *
  219.      * @return AppInfo
  220.      */
  221.     public function setPlatform($platform)
  222.     {
  223.         $this->platform $platform;
  224.         return $this;
  225.     }
  226.     /**
  227.      * Get platform
  228.      *
  229.      * @return string
  230.      */
  231.     public function getPlatform()
  232.     {
  233.         return $this->platform;
  234.     }
  235.     public function getCategories(): ?array
  236.     {
  237.         return $this->categories;
  238.     }
  239.     public function setCategories(?array $categories): static
  240.     {
  241.         $this->categories $categories;
  242.         return $this;
  243.     }
  244. }