From e22c1cb091f063152aed9cb0df34ac5995a7b5d7 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sun, 19 Dec 2021 22:50:52 +0800 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BD=D0=B0=D0=BB=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BE=D1=81=D1=82=D0=B0=D0=B2=D1=88?= =?UTF-8?q?=D0=B8=D1=85=D1=81=D1=8F=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Api/AtolResponse.php | 5 ++--- src/Api/Fiscalizer.php | 2 +- src/Api/Monitor.php | 2 +- src/Entities/Correction.php | 6 +++--- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Api/AtolResponse.php b/src/Api/AtolResponse.php index 41fb3f1..5d7739d 100644 --- a/src/Api/AtolResponse.php +++ b/src/Api/AtolResponse.php @@ -15,8 +15,7 @@ namespace AtolOnline\Api; use JetBrains\PhpStorm\{ ArrayShape, - Pure -}; + Pure}; use JsonSerializable; use Psr\Http\Message\ResponseInterface; use Stringable; @@ -27,7 +26,7 @@ use Stringable; * @property mixed $error * @package AtolOnline\Api */ -class AtolResponse implements JsonSerializable, Stringable +final class AtolResponse implements JsonSerializable, Stringable { /** * @var int Код ответа сервера diff --git a/src/Api/Fiscalizer.php b/src/Api/Fiscalizer.php index 8bcbe78..17c90b5 100644 --- a/src/Api/Fiscalizer.php +++ b/src/Api/Fiscalizer.php @@ -38,7 +38,7 @@ use Ramsey\Uuid\Uuid; /** * Класс фискализатора для регистрации документов на ККТ */ -class Fiscalizer extends AtolClient +final class Fiscalizer extends AtolClient { /** * @var string|null Группа ККТ diff --git a/src/Api/Monitor.php b/src/Api/Monitor.php index 4f2eea0..77ecaf8 100644 --- a/src/Api/Monitor.php +++ b/src/Api/Monitor.php @@ -27,7 +27,7 @@ use JetBrains\PhpStorm\Pure; * * @see https://online.atol.ru/files/API_service_information.pdf Документация */ -class Monitor extends AtolClient +final class Monitor extends AtolClient { /** * @inheritDoc diff --git a/src/Entities/Correction.php b/src/Entities/Correction.php index b9e4a3d..3e8fade 100644 --- a/src/Entities/Correction.php +++ b/src/Entities/Correction.php @@ -33,7 +33,7 @@ use JetBrains\PhpStorm\ArrayShape; * * @see https://online.atol.ru/files/API_atol_online_v4.pdf Документация, стр 35 */ -class Correction extends Entity +final class Correction extends Entity { /** * Тип документа @@ -188,7 +188,7 @@ class Correction extends Entity * * @return Vats|null */ - public function getVats(): ?Vats + public function getVats(): Vats { return $this->vats ?? new Vats(); } @@ -200,7 +200,7 @@ class Correction extends Entity * @return $this * @throws Exception */ - public function setVats(?Vats $vats): self + public function setVats(Vats $vats): self { $vats->checkCount(); $vats->checkItemsClasses();