src/Entity/Local/PushNotificationSubscription.php line 11

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Local;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Embeddable()
  7.  */
  8. class PushNotificationSubscription
  9. {
  10.     /**
  11.      * @ORM\Column(type="string", nullable=true)
  12.      * @var string|null
  13.      */
  14.     protected $platform;
  15.     /**
  16.      * @ORM\Column(type="string", nullable=true)
  17.      * @var string|null
  18.      */
  19.     protected $pushToken;
  20.     /**
  21.      * @return string|null
  22.      */
  23.     public function getPlatform(): ?string
  24.     {
  25.         return $this->platform;
  26.     }
  27.     /**
  28.      * @param string|null $platform
  29.      *
  30.      * @return PushNotificationSubscription
  31.      */
  32.     public function setPlatform(?string $platform): PushNotificationSubscription
  33.     {
  34.         $this->platform $platform;
  35.         return $this;
  36.     }
  37.     /**
  38.      * @return string|null
  39.      */
  40.     public function getPushToken(): ?string
  41.     {
  42.         return $this->pushToken;
  43.     }
  44.     /**
  45.      * @param string|null $pushToken
  46.      *
  47.      * @return PushNotificationSubscription
  48.      */
  49.     public function setPushToken(?string $pushToken): PushNotificationSubscription
  50.     {
  51.         $this->pushToken $pushToken;
  52.         return $this;
  53.     }
  54. }