src/Entity/Allpublications.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity()
  6.  */
  7. class Allpublications
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="text", nullable=false)
  17.      */
  18.     private $title;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $name;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $type;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $url;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $volume;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $pages;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $issue;
  43.     /**
  44.      * @ORM\Column(type="text", nullable=true)
  45.      */
  46.     private $authors;
  47.     /**
  48.      * @ORM\Column(type="integer", nullable=true)
  49.      */
  50.     private $year;
  51.     /**
  52.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="allpublications")
  53.      * @ORM\JoinColumn(nullable=false)
  54.      */
  55.     private $user;
  56.     /**
  57.      * @ORM\Column(type="datetime", nullable=true)
  58.      */
  59.     private $created_at;
  60.     public function getId(): ?int
  61.     {
  62.         return $this->id;
  63.     }
  64.     public function getTitle(): ?string
  65.     {
  66.         return $this->title;
  67.     }
  68.     public function setTitle(?string $title): self
  69.     {
  70.         $this->title $title;
  71.         return $this;
  72.     }
  73.     /**
  74.      * @return mixed
  75.      */
  76.     public function getAuthors()
  77.     {
  78.         return $this->authors;
  79.     }
  80.     /**
  81.      * @param mixed $authors
  82.      */
  83.     public function setAuthors($authors): void
  84.     {
  85.         $this->authors $authors;
  86.     }
  87.     public function getUrl(): ?string
  88.     {
  89.         return $this->url;
  90.     }
  91.     public function setUrl(?string $url): self
  92.     {
  93.         $this->url $url;
  94.         return $this;
  95.     }
  96.     public function getVolume(): ?string
  97.     {
  98.         return $this->volume;
  99.     }
  100.     public function setVolume(?string $volume): self
  101.     {
  102.         $this->volume $volume;
  103.         return $this;
  104.     }
  105.     public function getIssue(): ?string
  106.     {
  107.         return $this->issue;
  108.     }
  109.     public function setIssue(?string $issue): self
  110.     {
  111.         $this->issue $issue;
  112.         return $this;
  113.     }
  114.     public function getYear(): ?int
  115.     {
  116.         return $this->year;
  117.     }
  118.     public function setYear(?int $year): self
  119.     {
  120.         $this->year $year;
  121.         return $this;
  122.     }
  123.     public function getUser(): ?User
  124.     {
  125.         return $this->user;
  126.     }
  127.     public function setUser(?User $user): self
  128.     {
  129.         $this->user $user;
  130.         return $this;
  131.     }
  132.     /**
  133.      * @return mixed
  134.      */
  135.     public function getName()
  136.     {
  137.         return $this->name;
  138.     }
  139.     /**
  140.      * @param mixed $name
  141.      */
  142.     public function setName($name): void
  143.     {
  144.         $this->name $name;
  145.     }
  146.     /**
  147.      * @return mixed
  148.      */
  149.     public function getType()
  150.     {
  151.         return $this->type;
  152.     }
  153.     /**
  154.      * @param mixed $type
  155.      */
  156.     public function setType($type): void
  157.     {
  158.         $this->type $type;
  159.     }
  160.     /**
  161.      * @return mixed
  162.      */
  163.     public function getPages()
  164.     {
  165.         return $this->pages;
  166.     }
  167.     /**
  168.      * @param mixed $pages
  169.      */
  170.     public function setPages($pages): void
  171.     {
  172.         $this->pages $pages;
  173.     }
  174.     public function getCreatedAt(): ?\DateTime
  175.     {
  176.         return $this->created_at;
  177.     }
  178.     public function setCreatedAt(?\DateTime $created_at): self
  179.     {
  180.         $this->created_at $created_at;
  181.         return $this;
  182.     }
  183. }