Четвёртая итерация Receipt

- 100% покрытие
- элвисы в разных сеттерах
This commit is contained in:
2021-12-08 19:04:14 +08:00
parent 703c5178f5
commit 16d1146826
6 changed files with 226 additions and 28 deletions

View File

@@ -17,12 +17,10 @@ use AtolOnline\Exceptions\{
InvalidInnLengthException,
InvalidPhoneException,
TooLongClientNameException,
TooLongEmailException
};
TooLongEmailException};
use AtolOnline\Traits\{
HasEmail,
HasInn
};
HasInn};
use JetBrains\PhpStorm\Pure;
/**
@@ -94,7 +92,7 @@ final class Client extends Entity
throw new TooLongClientNameException($name);
}
}
$this->name = empty($name) ? null : $name;
$this->name = $name ?: null;
return $this;
}