From 8000b40d667f13fbf4e9d5edafdd253f5e56d12e Mon Sep 17 00:00:00 2001 From: Sergey Kasatkin Date: Wed, 25 Oct 2017 22:45:34 +0300 Subject: [PATCH] Version 2.0 --- .styleci.yml | 2 +- src/Response/CompositeResponse.php | 216 ----------------------------- 2 files changed, 1 insertion(+), 217 deletions(-) delete mode 100644 src/Response/CompositeResponse.php diff --git a/.styleci.yml b/.styleci.yml index d81d8dd..e9572fb 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -3,7 +3,7 @@ preset: psr2 risky: false enabled: - - alpha_ordered_imports + - alpha_ordered_imports - binary_operator_spaces - blank_line_after_opening_tag - cast_spaces diff --git a/src/Response/CompositeResponse.php b/src/Response/CompositeResponse.php deleted file mode 100644 index 7846fc5..0000000 --- a/src/Response/CompositeResponse.php +++ /dev/null @@ -1,216 +0,0 @@ -isAddressExists()) { - if ($this->getAddress()->qc !== Address::QC_OK) { - return false; - } - } - if ($this->isPhoneExists()) { - if ($this->getPhone()->qc !== Phone::QC_OK) { - return false; - } - } - if ($this->isPassportExists()) { - if ($this->getPassport()->qc !== Passport::QC_OK) { - return false; - } - } - if ($this->isNameExists()) { - if ($this->getName()->qc !== Name::QC_OK) { - return false; - } - } - if ($this->isEmailExists()) { - if ($this->getEmail()->qc !== Email::QC_OK) { - return false; - } - } - if ($this->isVehicleExists()) { - if ($this->getVehicle()->qc !== Vehicle::QC_OK) { - return false; - } - } - return true; - } - - /** - * @return bool - */ - public function isVehicleExists(): bool - { - return $this->vehicle !== null; - } - - /** - * @return bool - */ - public function isEmailExists(): bool - { - return $this->email !== null; - } - - /** - * @return bool - */ - public function isNameExists(): bool - { - return $this->name !== null; - } - - /** - * @return bool - */ - public function isPassportExists(): bool - { - return $this->passport !== null; - } - - /** - * @return bool - */ - public function isPhoneExists(): bool - { - return $this->phone !== null; - } - - /** - * @return bool - */ - public function isAddressExists(): bool - { - return $this->address !== null; - } - - /** - * @return Address - */ - public function getAddress(): Address - { - return $this->address; - } - - /** - * @param AbstractResponse $address - */ - public function setAddress(AbstractResponse $address) - { - $this->address = $address; - } - - /** - * @return Phone - */ - public function getPhone(): Phone - { - return $this->phone; - } - - /** - * @param AbstractResponse $phone - */ - public function setPhone(AbstractResponse $phone) - { - $this->phone = $phone; - } - - /** - * @return Passport - */ - public function getPassport(): Passport - { - return $this->passport; - } - - /** - * @param AbstractResponse $passport - */ - public function setPassport(AbstractResponse $passport) - { - $this->passport = $passport; - } - - /** - * @return Name - */ - public function getName(): Name - { - return $this->name; - } - - /** - * @param AbstractResponse $name - */ - public function setName(AbstractResponse $name) - { - $this->name = $name; - } - - /** - * @return Email - */ - public function getEmail(): Email - { - return $this->email; - } - - /** - * @param AbstractResponse $email - */ - public function setEmail(AbstractResponse $email) - { - $this->email = $email; - } - - /** - * @return Vehicle - */ - public function getVehicle(): Vehicle - { - return $this->vehicle; - } - - /** - * @param AbstractResponse $vehicle - */ - public function setVehicle(AbstractResponse $vehicle) - { - $this->vehicle = $vehicle; - } -} \ No newline at end of file