src/Entity/User.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use FOS\UserBundle\Model\User as BaseUser;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity
  7.  * @ORM\Table(name="fos_user")
  8.  */
  9. class User extends BaseUser
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\Column(type="integer")
  13.      * @ORM\GeneratedValue(strategy="AUTO")
  14.      */
  15.     protected $id;
  16.      /**
  17.      * @ORM\Column(type="string", length=200)
  18.      */
  19.     private $type;
  20.     public function __construct()
  21.     {
  22.         parent::__construct();
  23.         // your own logic
  24.     }
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getType(): ?string
  30.     {
  31.         return $this->type;
  32.     }
  33.     public function setType(string $type): self
  34.     {
  35.         $this->type $type;
  36.         return $this;
  37.     }
  38. }