vendor/webbamboo/spinners-common/src/Entity/InterestingarticleCity.php line 13

  1. <?php
  2. namespace Webbamboo\SpinnersCommon\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * InterestingarticleCity
  6.  *
  7.  * @ORM\Table("InterestingarticleCity")
  8.  * @ORM\Entity
  9.  */
  10. class InterestingarticleCity
  11. {
  12.     /**
  13.      * @var integer
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="title", type="string", length=255)
  24.      */
  25.     private $title;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="content", type="text")
  30.      */
  31.     private $excerpt;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="Article")
  34.      * @ORM\JoinColumn(name="article_id", referencedColumnName="id")
  35.      **/
  36.     private $related;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity="City", inversedBy="interestingarticles")
  39.      * @ORM\JoinColumn(name="city_id", referencedColumnName="id")
  40.      **/
  41.     private $city;
  42.     /**
  43.      * Get id
  44.      *
  45.      * @return integer
  46.      */
  47.     public function getId()
  48.     {
  49.         return $this->id;
  50.     }
  51.     /**
  52.      * Set title
  53.      *
  54.      * @param string $title
  55.      * @return InterestingarticleCity
  56.      */
  57.     public function setTitle($title)
  58.     {
  59.         $this->title $title;
  60.         return $this;
  61.     }
  62.     /**
  63.      * Get title
  64.      *
  65.      * @return string
  66.      */
  67.     public function getTitle()
  68.     {
  69.         return $this->title;
  70.     }
  71.     /**
  72.      * Set excerpt
  73.      *
  74.      * @param string $excerpt
  75.      * @return InterestingarticleCity
  76.      */
  77.     public function setExcerpt($excerpt)
  78.     {
  79.         $this->excerpt $excerpt;
  80.         return $this;
  81.     }
  82.     /**
  83.      * Get excerpt
  84.      *
  85.      * @return string
  86.      */
  87.     public function getExcerpt()
  88.     {
  89.         return $this->excerpt;
  90.     }
  91.     /**
  92.      * Set related
  93.      *
  94.      * @param \Webbamboo\SpinnersCommon\Entity\Article $related
  95.      * @return InterestingarticleCity
  96.      */
  97.     public function setRelated(\Webbamboo\SpinnersCommon\Entity\Article $related null)
  98.     {
  99.         $this->related $related;
  100.         return $this;
  101.     }
  102.     /**
  103.      * Get related
  104.      *
  105.      * @return \Webbamboo\SpinnersCommon\Entity\Article
  106.      */
  107.     public function getRelated()
  108.     {
  109.         return $this->related;
  110.     }
  111.     /**
  112.      * Set city
  113.      *
  114.      * @param \Webbamboo\SpinnersCommon\Entity\City $city
  115.      * @return InterestingarticleCity
  116.      */
  117.     public function setCity(\Webbamboo\SpinnersCommon\Entity\City $city null)
  118.     {
  119.         $this->city $city;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Get city
  124.      *
  125.      * @return \Webbamboo\SpinnersCommon\Entity\City
  126.      */
  127.     public function getCity()
  128.     {
  129.         return $this->city;
  130.     }
  131. }