src/Entity/GridPrice.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Billing
  6.  *
  7.  * @ORM\Table(name="grid_price")
  8.  * @ORM\Entity
  9.  */
  10. class GridPrice
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="name", type="string", length=500, nullable=false)
  24.      */
  25.     private $name;
  26.     public function __toString()
  27.     {
  28.         return $this->name;
  29.     }
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     /**
  35.      * @return string
  36.      */
  37.     public function getName(): ?string
  38.     {
  39.         return $this->name;
  40.     }
  41.     /**
  42.      * @param string $name
  43.      */
  44.     public function setName(string $name): void
  45.     {
  46.         $this->name $name;
  47.     }
  48. }