<?php
/**
* Created by PhpStorm.
* User: varnit
* Date: 03/12/16
* Time: 12:35 PM
*/
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\AppInfoRepository")
* @ORM\Table(indexes={@ORM\Index(name="app_id", columns={"app_id"})})
*/
class AppInfo {
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", nullable=false)
*/
private $appId;
/**
* @ORM\Column(type="string", length=1999, nullable=false)
*/
private $url;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $icon;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $title;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $author;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\Column(type="datetime", options={"default"="CURRENT_TIMESTAMP"})
*/
private $dateInserted;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $platform;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $categories;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set appId
*
* @param string $appId
*
* @return AppInfo
*/
public function setAppId($appId)
{
$this->appId = $appId;
return $this;
}
/**
* Get appId
*
* @return string
*/
public function getAppId()
{
return $this->appId;
}
/**
* Set url
*
* @param string $url
*
* @return AppInfo
*/
public function setUrl($url)
{
$this->url = $url;
return $this;
}
/**
* Get url
*
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* Set icon
*
* @param string $icon
*
* @return AppInfo
*/
public function setIcon($icon)
{
$this->icon = $icon;
return $this;
}
/**
* Get icon
*
* @return string
*/
public function getIcon()
{
return $this->icon;
}
/**
* Set title
*
* @param string $title
*
* @return AppInfo
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set author
*
* @param string $author
*
* @return AppInfo
*/
public function setAuthor($author)
{
$this->author = $author;
return $this;
}
/**
* Get author
*
* @return string
*/
public function getAuthor()
{
return $this->author;
}
/**
* Set description
*
* @param string $description
*
* @return AppInfo
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set dateInserted
*
* @param \DateTime $dateInserted
*
* @return AppInfo
*/
public function setDateInserted($dateInserted)
{
$this->dateInserted = $dateInserted;
return $this;
}
/**
* Get dateInserted
*
* @return \DateTime
*/
public function getDateInserted()
{
return $this->dateInserted;
}
/**
* Set platform
*
* @param string $platform
*
* @return AppInfo
*/
public function setPlatform($platform)
{
$this->platform = $platform;
return $this;
}
/**
* Get platform
*
* @return string
*/
public function getPlatform()
{
return $this->platform;
}
public function getCategories(): ?array
{
return $this->categories;
}
public function setCategories(?array $categories): static
{
$this->categories = $categories;
return $this;
}
}