for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Sylius\ShopApiPlugin\Command;
final class UpdateCustomer
{
/** @var string */
private $firstName;
private $lastName;
private $email;
/** @var string|null */
private $birthday;
private $gender;
private $phoneNumber;
/** @var bool */
private $subscribedToNewsletter;
public function __construct(string $firstName, string $lastName, string $email, ?string $birthday, string $gender, ?string $phoneNumber, ?bool $subscribedToNewsletter)
$this->firstName = $firstName;
$this->lastName = $lastName;
$this->email = $email;
$this->birthday = $birthday;
$this->gender = $gender;
$this->phoneNumber = $phoneNumber;
$this->subscribedToNewsletter = $subscribedToNewsletter;
}
/** @return string */
public function firstName(): string
return $this->firstName;
public function lastName(): string
return $this->lastName;
public function email(): string
return $this->email;
/** @return string|null */
public function birthday(): ?string
return $this->birthday;
public function gender(): ?string
return $this->gender;
public function phoneNumber(): ?string
return $this->phoneNumber;
/** @return bool */
public function subscribedToNewsletter(): bool
return $this->subscribedToNewsletter;