Переименован AtolEntity -> Entity

This commit is contained in:
Anthony Axenov 2020-04-17 20:10:50 +08:00
parent 7da7d25823
commit c9ed0bf467
12 changed files with 14 additions and 14 deletions

View File

@ -16,7 +16,7 @@ use AtolOnline\{Exceptions\AtolNameTooLongException, Exceptions\AtolPhoneTooLong
*
* @package AtolOnline\Entities
*/
class Client extends AtolEntity
class Client extends Entity
{
use
/**

View File

@ -22,7 +22,7 @@ use AtolOnline\{Exceptions\AtolEmailTooLongException,
*
* @package AtolOnline\Entities
*/
class Company extends AtolEntity
class Company extends Entity
{
use
/**

View File

@ -14,7 +14,7 @@ namespace AtolOnline\Entities;
*
* @package AtolOnline\Entities
*/
class CorrectionInfo extends AtolEntity
class CorrectionInfo extends Entity
{
/**
* @var int Тип коррекции. Тег ФФД - 1173.

View File

@ -16,7 +16,7 @@ use AtolOnline\Exceptions\AtolCashierTooLongException;
*
* @package AtolOnline\Entities
*/
class Document extends AtolEntity
class Document extends Entity
{
/**
* @var \AtolOnline\Entities\ItemArray Массив предметов расчёта

View File

@ -16,7 +16,7 @@ use JsonSerializable;
*
* @package AtolOnline\Entities
*/
abstract class AtolEntity implements JsonSerializable
abstract class Entity implements JsonSerializable
{
/**
* @inheritDoc

View File

@ -22,7 +22,7 @@ use AtolOnline\{Exceptions\AtolNameTooLongException,
*
* @package AtolOnline\Entities
*/
class Item extends AtolEntity
class Item extends Entity
{
use RublesKopeksConverter;

View File

@ -18,7 +18,7 @@ use AtolOnline\Exceptions\AtolTooManyItemsException;
*
* @package AtolOnline\Entities
*/
class ItemArray extends AtolEntity
class ItemArray extends Entity
{
/**
* Максимальное количество элементов в массиве

View File

@ -16,7 +16,7 @@ use AtolOnline\Constants\PaymentTypes;
*
* @package AtolOnline\Entities
*/
class Payment extends AtolEntity
class Payment extends Entity
{
/**
* @var int Тип оплаты

View File

@ -16,7 +16,7 @@ use AtolOnline\Exceptions\AtolTooManyPaymentsException;
*
* @package AtolOnline\Entities
*/
class PaymentArray extends AtolEntity
class PaymentArray extends Entity
{
/**
* Максимальное количество элементов в массиве

View File

@ -16,7 +16,7 @@ use AtolOnline\{Constants\VatTypes, Traits\RublesKopeksConverter};
*
* @package AtolOnline\Entities
*/
class Vat extends AtolEntity
class Vat extends Entity
{
use RublesKopeksConverter;

View File

@ -18,7 +18,7 @@ use AtolOnline\Exceptions\AtolTooManyVatsException;
*
* @package AtolOnline\Entities
*/
class VatArray extends AtolEntity
class VatArray extends Entity
{
/**
* @var Vat[] Массив ставок НДС

View File

@ -7,7 +7,7 @@
* https://github.com/anthonyaxenov/atol-online/blob/master/LICENSE
*/
use AtolOnline\Entities\AtolEntity;
use AtolOnline\Entities\Entity;
use PHPUnit\Framework\TestCase;
/**
@ -28,10 +28,10 @@ class BasicTestCase extends TestCase
}
/**
* @param AtolOnline\Entities\AtolEntity $entity
* @param Entity $entity
* @return $this
*/
public function checkAtolEntity(AtolEntity $entity)
public function checkAtolEntity(Entity $entity)
{
$this->assertJson((string)$entity);
return $this;