|
|
@@ -54,6 +54,21 @@ abstract class User extends UserModelFOS |
|
|
|
*/ |
|
|
|
protected $isSubscribedNewsletter; |
|
|
|
|
|
|
|
/** |
|
|
|
* @ORM\Column(type="string", length=64, nullable=true) |
|
|
|
*/ |
|
|
|
protected $firstname; |
|
|
|
|
|
|
|
/** |
|
|
|
* @ORM\Column(type="string", length=64, nullable=true) |
|
|
|
*/ |
|
|
|
protected $lastname; |
|
|
|
|
|
|
|
/** |
|
|
|
* @ORM\Column(type="boolean", nullable=true) |
|
|
|
*/ |
|
|
|
protected $gender; |
|
|
|
|
|
|
|
public function __construct() |
|
|
|
{ |
|
|
|
parent::__construct(); |
|
|
@@ -63,6 +78,12 @@ abstract class User extends UserModelFOS |
|
|
|
$this->carts = new ArrayCollection(); |
|
|
|
} |
|
|
|
|
|
|
|
public function setEmail($email) |
|
|
|
{ |
|
|
|
$this->setUsername($email); |
|
|
|
return parent::setEmail($email); |
|
|
|
} |
|
|
|
|
|
|
|
public function getPhone(): ?string |
|
|
|
{ |
|
|
|
return $this->phone; |
|
|
@@ -234,4 +255,40 @@ abstract class User extends UserModelFOS |
|
|
|
|
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
|
public function getFirstname(): ?string |
|
|
|
{ |
|
|
|
return $this->firstname; |
|
|
|
} |
|
|
|
|
|
|
|
public function setFirstname(?string $firstname): self |
|
|
|
{ |
|
|
|
$this->firstname = $firstname; |
|
|
|
|
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
|
public function getLastname(): ?string |
|
|
|
{ |
|
|
|
return $this->lastname; |
|
|
|
} |
|
|
|
|
|
|
|
public function setLastname(?string $lastname): self |
|
|
|
{ |
|
|
|
$this->lastname = $lastname; |
|
|
|
|
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
|
public function getGender(): ?bool |
|
|
|
{ |
|
|
|
return $this->gender; |
|
|
|
} |
|
|
|
|
|
|
|
public function setGender(?bool $gender): self |
|
|
|
{ |
|
|
|
$this->gender = $gender; |
|
|
|
|
|
|
|
return $this; |
|
|
|
} |
|
|
|
} |