Небольшие исправления

This commit is contained in:
Антон Н. Николаев
2020-12-02 15:04:08 +03:00
parent da4a855bfd
commit 98fcf44d99
6 changed files with 16 additions and 17 deletions
+2 -12
View File
@@ -62,17 +62,6 @@ class ReceiptCustomer extends AbstractObject implements ReceiptCustomerInterface
*/
private $_inn;
/**
* ReceiptCustomer constructor.
* @param null|array $data
*/
public function __construct($data = null)
{
if (!empty($data) && is_array($data)) {
$this->fromArray($data);
}
}
/**
* Возвращает для юрлица — название организации, для ИП и физического лица — ФИО
* @return string Название организации или ФИО
@@ -195,7 +184,8 @@ class ReceiptCustomer extends AbstractObject implements ReceiptCustomerInterface
*/
public function isEmpty()
{
return empty($this->getFullName() . $this->getEmail() . $this->getPhone() . $this->getInn());
$data = $this->getFullName() . $this->getEmail() . $this->getPhone() . $this->getInn();
return empty($data);
}
/**