1
0
mirror of synced 2024-11-24 14:26:08 +03:00

deleted return types in setters CustomerBuilder class

This commit is contained in:
Sergey Chazov 2021-04-05 13:40:53 +03:00
parent 2689836c65
commit 8e444e0880

View File

@ -40,7 +40,7 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
* @param Customer $customer * @param Customer $customer
* @return $this * @return $this
*/ */
public function setCustomer(Customer $customer): CustomerBuilder public function setCustomer(Customer $customer)
{ {
$this->customer = $customer; $this->customer = $customer;
@ -50,7 +50,7 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
/** /**
* @return Customer * @return Customer
*/ */
public function getCustomer(): Customer public function getCustomer()
{ {
return $this->customer; return $this->customer;
} }
@ -68,7 +68,7 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
/** /**
* @return CustomerAddress * @return CustomerAddress
*/ */
public function getCustomerAddress(): CustomerAddress public function getCustomerAddress()
{ {
return $this->customerAddress; return $this->customerAddress;
} }
@ -77,7 +77,7 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
* @param array $dataCrm * @param array $dataCrm
* @return $this * @return $this
*/ */
public function setDataCrm($dataCrm): CustomerBuilder public function setDataCrm($dataCrm)
{ {
$this->dataCrm = $dataCrm; $this->dataCrm = $dataCrm;
@ -88,7 +88,7 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
* @param array $user * @param array $user
* @return $this * @return $this
*/ */
public function setUser($user): CustomerBuilder public function setUser($user)
{ {
$this->user = $user; $this->user = $user;
@ -99,7 +99,7 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
* @param int $registeredUserID * @param int $registeredUserID
* @return $this * @return $this
*/ */
public function setRegisteredUserID(int $registeredUserID): CustomerBuilder public function setRegisteredUserID(int $registeredUserID)
{ {
$this->registeredUserID = $registeredUserID; $this->registeredUserID = $registeredUserID;
@ -109,7 +109,7 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
/** /**
* @return int * @return int
*/ */
public function getRegisteredUserID(): int public function getRegisteredUserID()
{ {
return $this->registeredUserID; return $this->registeredUserID;
} }
@ -117,7 +117,7 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
/** /**
* @return bool * @return bool
*/ */
public function getRegisterNewUser(): bool public function getRegisterNewUser()
{ {
return $this->registerNewUser; return $this->registerNewUser;
} }
@ -138,8 +138,8 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
if (isset($this->dataCrm['phones'])) { if (isset($this->dataCrm['phones'])) {
foreach ($this->dataCrm['phones'] as $phone) { foreach ($this->dataCrm['phones'] as $phone) {
if (isset($phone['old_number']) && in_array($phone['old_number'], $this->user, true)) { if (isset($phone['old_number']) && in_array($phone['old_number'], $this->user)) {
$key = array_search($phone['old_number'], $this->user, true); $key = array_search($phone['old_number'], $this->user);
if (isset($phone['number'])) { if (isset($phone['number'])) {
$this->user[$key] = $phone['number']; $this->user[$key] = $phone['number'];
@ -222,7 +222,7 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
* @param string $login * @param string $login
* @return $this * @return $this
*/ */
public function setLogin(string $login): CustomerBuilder public function setLogin(string $login)
{ {
$this->customer->setLogin($login); $this->customer->setLogin($login);
@ -233,7 +233,7 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
* @param string $email * @param string $email
* @return $this * @return $this
*/ */
public function setEmail(string $email): CustomerBuilder public function setEmail(string $email)
{ {
$this->customer->setEmail($email); $this->customer->setEmail($email);