mirror of
https://github.com/anthonyaxenov/atol-online.git
synced 2024-12-22 12:54:53 +00:00
Переименован AtolEntity -> Entity
This commit is contained in:
parent
7da7d25823
commit
c9ed0bf467
@ -16,7 +16,7 @@ use AtolOnline\{Exceptions\AtolNameTooLongException, Exceptions\AtolPhoneTooLong
|
||||
*
|
||||
* @package AtolOnline\Entities
|
||||
*/
|
||||
class Client extends AtolEntity
|
||||
class Client extends Entity
|
||||
{
|
||||
use
|
||||
/**
|
||||
|
@ -22,7 +22,7 @@ use AtolOnline\{Exceptions\AtolEmailTooLongException,
|
||||
*
|
||||
* @package AtolOnline\Entities
|
||||
*/
|
||||
class Company extends AtolEntity
|
||||
class Company extends Entity
|
||||
{
|
||||
use
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ namespace AtolOnline\Entities;
|
||||
*
|
||||
* @package AtolOnline\Entities
|
||||
*/
|
||||
class CorrectionInfo extends AtolEntity
|
||||
class CorrectionInfo extends Entity
|
||||
{
|
||||
/**
|
||||
* @var int Тип коррекции. Тег ФФД - 1173.
|
||||
|
@ -16,7 +16,7 @@ use AtolOnline\Exceptions\AtolCashierTooLongException;
|
||||
*
|
||||
* @package AtolOnline\Entities
|
||||
*/
|
||||
class Document extends AtolEntity
|
||||
class Document extends Entity
|
||||
{
|
||||
/**
|
||||
* @var \AtolOnline\Entities\ItemArray Массив предметов расчёта
|
||||
|
@ -16,7 +16,7 @@ use JsonSerializable;
|
||||
*
|
||||
* @package AtolOnline\Entities
|
||||
*/
|
||||
abstract class AtolEntity implements JsonSerializable
|
||||
abstract class Entity implements JsonSerializable
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
@ -22,7 +22,7 @@ use AtolOnline\{Exceptions\AtolNameTooLongException,
|
||||
*
|
||||
* @package AtolOnline\Entities
|
||||
*/
|
||||
class Item extends AtolEntity
|
||||
class Item extends Entity
|
||||
{
|
||||
use RublesKopeksConverter;
|
||||
|
||||
|
@ -18,7 +18,7 @@ use AtolOnline\Exceptions\AtolTooManyItemsException;
|
||||
*
|
||||
* @package AtolOnline\Entities
|
||||
*/
|
||||
class ItemArray extends AtolEntity
|
||||
class ItemArray extends Entity
|
||||
{
|
||||
/**
|
||||
* Максимальное количество элементов в массиве
|
||||
|
@ -16,7 +16,7 @@ use AtolOnline\Constants\PaymentTypes;
|
||||
*
|
||||
* @package AtolOnline\Entities
|
||||
*/
|
||||
class Payment extends AtolEntity
|
||||
class Payment extends Entity
|
||||
{
|
||||
/**
|
||||
* @var int Тип оплаты
|
||||
|
@ -16,7 +16,7 @@ use AtolOnline\Exceptions\AtolTooManyPaymentsException;
|
||||
*
|
||||
* @package AtolOnline\Entities
|
||||
*/
|
||||
class PaymentArray extends AtolEntity
|
||||
class PaymentArray extends Entity
|
||||
{
|
||||
/**
|
||||
* Максимальное количество элементов в массиве
|
||||
|
@ -16,7 +16,7 @@ use AtolOnline\{Constants\VatTypes, Traits\RublesKopeksConverter};
|
||||
*
|
||||
* @package AtolOnline\Entities
|
||||
*/
|
||||
class Vat extends AtolEntity
|
||||
class Vat extends Entity
|
||||
{
|
||||
use RublesKopeksConverter;
|
||||
|
||||
|
@ -18,7 +18,7 @@ use AtolOnline\Exceptions\AtolTooManyVatsException;
|
||||
*
|
||||
* @package AtolOnline\Entities
|
||||
*/
|
||||
class VatArray extends AtolEntity
|
||||
class VatArray extends Entity
|
||||
{
|
||||
/**
|
||||
* @var Vat[] Массив ставок НДС
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user