src/Entity/SubscriptionSmsPackage.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SubscriptionSmsPackageRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\SubscriptionSmsPackageRepository")
  7.  */
  8. class SubscriptionSmsPackage
  9. {
  10.     /**
  11.      * @ORM\Column(name="id", type="integer")
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue(strategy="AUTO")
  14.      */
  15.     private ?int $id null;
  16.     /**
  17.      * @ORM\Column(name="name", type="string", length=255)
  18.      */
  19.     private string $name;
  20.     /**
  21.      * @ORM\Column(name="messages", type="integer")
  22.      */
  23.     private int $numberOfMessages;
  24.     /**
  25.      * @ORM\Column(name="price", type="float")
  26.      */
  27.     private float $price;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getName(): string
  33.     {
  34.         return $this->name;
  35.     }
  36.     public function setName(string $name): void
  37.     {
  38.         $this->name $name;
  39.     }
  40.     public function getNumberOfMessages(): int
  41.     {
  42.         return $this->numberOfMessages;
  43.     }
  44.     public function setNumberOfMessages(int $numberOfMessages): void
  45.     {
  46.         $this->numberOfMessages $numberOfMessages;
  47.     }
  48.     public function getPrice(): float
  49.     {
  50.         return $this->price;
  51.     }
  52.     public function setPrice(float $price): void
  53.     {
  54.         $this->price $price;
  55.     }
  56.     /**
  57.      * @return string
  58.      */
  59.     public function __toString(): string
  60.     {
  61.         return (string)$this->getName();
  62.     }
  63. }