Order
extends Order
in package
Admin order aggregate (bridge to the Api).
IMPORTANT: the collections are owned with orphanRemoval, so every object-graph save must
send the full includes. Otherwise items, vouchers and the other collections are silently lost.
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_eshop_orders'
- #[TableAlias]
- 'order'
Table of Contents
Properties
- $bankAccount : string|null
- $bankName : string|null
- $buyerType : int
- $currency : TCurrency|null
- $customerCity : string|null
- $customerCompanyName : string|null
- $customerContactId : int|null
- $customerCountry : string|null
- $customerCountryCode : string|null
- $customerDlvCity : string|null
- $customerDlvCountry : string|null
- $customerDlvCountryCode : string|null
- $customerDlvInformations : string|null
- $customerDlvName : string|null
- $customerDlvPostcode : string|null
- $customerDlvStreet : string|null
- $customerEmail : string|null
- $customerFirstname : string|null
- $customerId : int|null
- $customerInformations : string|null
- $customerLastname : string|null
- $customerPhone : string|null
- $customerPostcode : string|null
- $customerRegNo : string|null
- $customerStreet : string|null
- $customerVatId : string|null
- $customerVatIdCheckId : int|null
- Applied VAT id check (`cms_system_vat_id_checks`): consultation number or manual proof.
- $customerVatIdOutageCheckId : int|null
- Record of a VIES outage on the supply date.
- $customerVatIdVerified : bool|null
- Null means the VAT id does not matter (empty or domestic); false is unverified; true is verified.
- $customerVatIdVerifiedAt : DateTime|null
- $expeditionCode : string|null
- $expeditionDatetime : DateTime|null
- $expeditionInformations : string|null
- $expeditionShipper : TExpeditionShipper|null
- $expeditionShipperBranchId : int|null
- $gifts : Collection<int, OrderGift>
- $gridInvoices : array<int, Invoice>
- $iban : string|null
- $id : int|null
- $informations : string|null
- $insertDatetime : DateTime|null
- $insertUserIp : string|null
- $invoicedStatus : int|null
- $isCancelled : bool
- $items : Collection<int, OrderItem>
- $language : TLanguage|null
- $localization : object|null
- Invoice localization: number and currency formats come from here, not from the current request.
- $orderNumber : string
- $payment : TPayment|null
- $paymentMethod : OrderPaymentMethod|null
- $paymentRegion : TPaymentRegion|null
- $payments : Collection<int, OrderPayment>
- $region : TRegion|null
- $reservationExpiresAt : DateTime|null
- $roundedTotalPrice : string
- $roundedTotalPriceWithVat : string
- $rounding : string
- $roundingVat : string
- $sellerBankAccountId : int|null
- $sellerCity : string|null
- $sellerContactId : int|null
- $sellerCountry : string|null
- $sellerEmail : string|null
- $sellerId : int|null
- $sellerInformations : string|null
- $sellerName : string|null
- $sellerPhone : string|null
- $sellerPostcode : string|null
- $sellerRegNo : string|null
- $sellerStreet : string|null
- $sellerVatId : string|null
- $sellerVatInformations : string|null
- $shipper : OrderShipper|null
- $status : TStatus|null
- $statusInformations : string|null
- $stockDocumentId : int|null
- $stockState : string
- $summaryReportCode : string|null
- Supply code for the summary report (`3` services, `0` goods); null means it is not reported.
- $swift : string|null
- $taxCountryCode : string|null
- Country of the applied rate (null without VAT).
- $taxDate : DateTime|null
- Date of the rate and of the seller status.
- $taxFlags : array<int, string>|null
- $taxNote : string|null
- Note in the document language (plus Czech), resolved at creation.
- $taxTreatment : string|null
- Treatment code; on a payment also the markers `INTERMEDIARY` and `CREDIT_REDEMPTION`.
- $totalPrice : string
- $totalPriceWithVat : string
- $updateDatetime : DateTime|null
- $updateUserId : int|null
- $updateUserIp : string|null
- $useDeliveryAddress : bool
- $user : TUser|null
- $userDiscountPercents : string
- $userIsUpdated : bool
- $userType : TUserType|null
- $variableSymbol : string|null
- $vouchers : Collection<int, OrderVoucher>
- $withVat : bool
Methods
- __construct() : mixed
- addGift() : $this
- addItem() : $this
- addPaymentRel() : $this
- addVoucher() : $this
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getBankAccount() : string|null
- getBankName() : string|null
- getBuyerType() : int
- getCurrency() : TCurrency|null
- getCustomerCity() : string|null
- getCustomerCompanyName() : string|null
- getCustomerContactId() : int|null
- getCustomerCountry() : string|null
- getCustomerCountryCode() : string|null
- getCustomerDlvCity() : string|null
- getCustomerDlvCountry() : string|null
- getCustomerDlvCountryCode() : string|null
- getCustomerDlvInformations() : string|null
- getCustomerDlvName() : string|null
- getCustomerDlvPostcode() : string|null
- getCustomerDlvStreet() : string|null
- getCustomerEmail() : string|null
- getCustomerFirstname() : string|null
- getCustomerId() : int|null
- getCustomerInformations() : string|null
- getCustomerLastname() : string|null
- getCustomerPhone() : string|null
- getCustomerPostcode() : string|null
- getCustomerRegNo() : string|null
- getCustomerStreet() : string|null
- getCustomerVatId() : string|null
- getCustomerVatIdCheckId() : int|null
- getCustomerVatIdOutageCheckId() : int|null
- getCustomerVatIdVerified() : bool|null
- getCustomerVatIdVerifiedAt() : DateTime|null
- getExpeditionCode() : string|null
- getExpeditionDatetime() : DateTime|null
- getExpeditionInformations() : string|null
- getExpeditionShipper() : TExpeditionShipper|null
- getExpeditionShipperBranchId() : int|null
- getGifts() : Collection<int, TOrderGift>
- getGridInvoices() : array<int, Invoice>
- getIban() : string|null
- getId() : int|null
- getInformations() : string|null
- getInsertDatetime() : DateTime|null
- getInsertUserIp() : string|null
- getInvoicedStatus() : int|null
- getIsCancelled() : bool
- getItems() : Collection<int, TItem>
- getLanguage() : TLanguage|null
- getLocalization() : object|null
- getLocalizationId() : int|null
- Prefers the object over the scalar (a freshly set localization wins over the mirror loaded from the DB). `$localization` is an untyped `object`, hence the guard instead of a plain `?->getId()`: without it PHPStan reports `object::getId()` and a foreign object in the association would fail at runtime.
- getOrderNumber() : string
- getOwnerUserId() : int|null
- getPayment() : TPayment|null
- getPaymentMethod() : TOrderPaymentMethod|null
- getPaymentRegion() : TPaymentRegion|null
- getPayments() : Collection<int, TOrderPayment>
- getRegion() : TRegion|null
- getReservationExpiresAt() : DateTime|null
- getRoundedTotalPrice() : string
- getRoundedTotalPriceWithVat() : string
- getRounding() : string
- getRoundingVat() : string
- getSellerBankAccountId() : int|null
- getSellerCity() : string|null
- getSellerContactId() : int|null
- getSellerCountry() : string|null
- getSellerEmail() : string|null
- getSellerId() : int|null
- getSellerInformations() : string|null
- getSellerName() : string|null
- getSellerPhone() : string|null
- getSellerPostcode() : string|null
- getSellerRegNo() : string|null
- getSellerStreet() : string|null
- getSellerVatId() : string|null
- getSellerVatInformations() : string|null
- getShipper() : TOrderShipper|null
- getStatus() : TStatus|null
- getStatusInformations() : string|null
- getStockDocumentId() : int|null
- getStockState() : string
- getSummaryReportCode() : string|null
- getSwift() : string|null
- getTaxCountryCode() : string|null
- getTaxDate() : DateTime|null
- getTaxFlags() : array<int, string>|null
- getTaxNote() : string|null
- getTaxTreatment() : string|null
- getTotalPrice() : string
- getTotalPriceWithVat() : string
- getUpdateDatetime() : DateTime|null
- getUpdateUserId() : int|null
- getUpdateUserIp() : string|null
- getUseDeliveryAddress() : bool
- getUser() : TUser|null
- getUserDiscountPercents() : string
- getUserDiscountPercentsAsFloat() : float
- getUserIsUpdated() : bool
- getUserType() : TUserType|null
- getVariableSymbol() : string|null
- getVouchers() : Collection<int, TOrderVoucher>
- getWithVat() : bool
- hasTaxFlag() : bool
- isCancelled() : bool
- isPersisted() : bool
- setBankAccount() : $this
- setBankName() : $this
- setBuyerType() : $this
- setCurrency() : $this
- setCustomerCity() : $this
- setCustomerCompanyName() : $this
- setCustomerContactId() : $this
- setCustomerCountry() : $this
- setCustomerCountryCode() : $this
- setCustomerDlvCity() : $this
- setCustomerDlvCountry() : $this
- setCustomerDlvCountryCode() : $this
- setCustomerDlvInformations() : $this
- setCustomerDlvName() : $this
- setCustomerDlvPostcode() : $this
- setCustomerDlvStreet() : $this
- setCustomerEmail() : $this
- setCustomerFirstname() : $this
- setCustomerId() : $this
- setCustomerInformations() : $this
- setCustomerLastname() : $this
- setCustomerPhone() : $this
- setCustomerPostcode() : $this
- setCustomerRegNo() : $this
- setCustomerStreet() : $this
- setCustomerVatId() : $this
- setCustomerVatIdCheckId() : static
- setCustomerVatIdOutageCheckId() : static
- setCustomerVatIdVerified() : static
- setCustomerVatIdVerifiedAt() : static
- setExpeditionCode() : $this
- setExpeditionDatetime() : $this
- setExpeditionInformations() : $this
- setExpeditionShipper() : $this
- setExpeditionShipperBranchId() : $this
- setGifts() : $this
- setGridInvoices() : self
- setIban() : $this
- setId() : $this
- setInformations() : $this
- setInsertDatetime() : $this
- setInsertUserIp() : $this
- setInvoicedStatus() : $this
- setIsCancelled() : $this
- setItems() : $this
- setLanguage() : $this
- setLocalization() : $this
- IMPORTANT: deliberately without the side effect `$this->localizationId = $localization?->getId()`.
- setOrderNumber() : $this
- setPayment() : $this
- setPaymentMethod() : $this
- setPaymentRegion() : $this
- setPayments() : $this
- setRegion() : $this
- setReservationExpiresAt() : $this
- setRoundedTotalPrice() : $this
- setRoundedTotalPriceWithVat() : $this
- setRounding() : $this
- setRoundingVat() : $this
- setSellerBankAccountId() : $this
- setSellerCity() : $this
- setSellerContactId() : $this
- setSellerCountry() : $this
- setSellerEmail() : $this
- setSellerId() : $this
- setSellerInformations() : $this
- setSellerName() : $this
- setSellerPhone() : $this
- setSellerPostcode() : $this
- setSellerRegNo() : $this
- setSellerStreet() : $this
- setSellerVatId() : $this
- setSellerVatInformations() : $this
- setShipper() : $this
- setStatus() : $this
- setStatusInformations() : $this
- setStockDocumentId() : $this
- setStockState() : $this
- setSummaryReportCode() : static
- setSwift() : $this
- setTaxCountryCode() : static
- setTaxDate() : static
- setTaxFlags() : static
- setTaxNote() : static
- setTaxTreatment() : static
- setTotalPrice() : $this
- setTotalPriceWithVat() : $this
- setUpdateDatetime() : $this
- setUpdateUserId() : $this
- setUpdateUserIp() : $this
- setUseDeliveryAddress() : $this
- setUser() : $this
- setUserDiscountPercents() : $this
- setUserIsUpdated() : $this
- setUserType() : $this
- setVariableSymbol() : $this
- setVouchers() : $this
- setWithVat() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$bankAccount
protected
string|null
$bankAccount
= null
Attributes
- #[Column]
- $name: 'bank_account'
- $type: 'string'
- $length: 50
- $nullable: true
$bankName
protected
string|null
$bankName
= null
Attributes
- #[Column]
- $name: 'bank_name'
- $type: 'string'
- $length: 255
- $nullable: true
$buyerType
protected
int
$buyerType
= 0
Attributes
- #[Column]
- $name: 'buyer_type'
- $type: 'integer'
- $options: ['unsigned' => true]
$currency
protected
TCurrency|null
$currency
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\System\Models\Entities\Currency::class
- #[JoinColumn]
- $name: 'cms_system_currencies_currency_id'
- $referencedColumnName: 'currency_id'
- $nullable: true
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\System\Models\Entities\Currency::class
- $fetch: 'LAZY'
$customerCity
protected
string|null
$customerCity
= null
Attributes
- #[Column]
- $name: 'customer_city'
- $type: 'string'
- $length: 255
- $nullable: true
$customerCompanyName
protected
string|null
$customerCompanyName
= null
Attributes
- #[Column]
- $name: 'customer_company_name'
- $type: 'string'
- $length: 255
- $nullable: true
$customerContactId
protected
int|null
$customerContactId
= null
Attributes
- #[Column]
- $name: 'cms_mod_invoicer_customer_contacts_customer_contact_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- $nullable: true
$customerCountry
protected
string|null
$customerCountry
= null
Attributes
- #[Column]
- $name: 'customer_country'
- $type: 'string'
- $length: 255
- $nullable: true
$customerCountryCode
protected
string|null
$customerCountryCode
= null
Attributes
- #[Column]
- $name: 'customer_country_code'
- $type: 'string'
- $length: 2
- $nullable: true
- $options: ['fixed' => true]
$customerDlvCity
protected
string|null
$customerDlvCity
= null
Attributes
- #[Column]
- $name: 'customer_dlv_city'
- $type: 'string'
- $length: 255
- $nullable: true
$customerDlvCountry
protected
string|null
$customerDlvCountry
= null
Attributes
- #[Column]
- $name: 'customer_dlv_country'
- $type: 'string'
- $length: 255
- $nullable: true
$customerDlvCountryCode
protected
string|null
$customerDlvCountryCode
= null
Attributes
- #[Column]
- $name: 'customer_dlv_country_code'
- $type: 'string'
- $length: 2
- $nullable: true
- $options: ['fixed' => true]
$customerDlvInformations
protected
string|null
$customerDlvInformations
= null
Attributes
- #[Column]
- $name: 'customer_dlv_informations'
- $type: 'text'
- $nullable: true
$customerDlvName
protected
string|null
$customerDlvName
= null
Attributes
- #[Column]
- $name: 'customer_dlv_name'
- $type: 'string'
- $length: 255
- $nullable: true
$customerDlvPostcode
protected
string|null
$customerDlvPostcode
= null
Attributes
- #[Column]
- $name: 'customer_dlv_postcode'
- $type: 'string'
- $length: 20
- $nullable: true
$customerDlvStreet
protected
string|null
$customerDlvStreet
= null
Attributes
- #[Column]
- $name: 'customer_dlv_street'
- $type: 'string'
- $length: 255
- $nullable: true
$customerEmail
protected
string|null
$customerEmail
= null
Attributes
- #[Column]
- $name: 'customer_email'
- $type: 'string'
- $length: 255
- $nullable: true
$customerFirstname
protected
string|null
$customerFirstname
= null
Attributes
- #[Column]
- $name: 'customer_firstname'
- $type: 'string'
- $length: 255
- $nullable: true
$customerId
protected
int|null
$customerId
= null
Attributes
- #[Column]
- $name: 'cms_mod_invoicer_customers_customer_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- $nullable: true
$customerInformations
protected
string|null
$customerInformations
= null
Attributes
- #[Column]
- $name: 'customer_informations'
- $type: 'text'
- $nullable: true
$customerLastname
protected
string|null
$customerLastname
= null
Attributes
- #[Column]
- $name: 'customer_lastname'
- $type: 'string'
- $length: 255
- $nullable: true
$customerPhone
protected
string|null
$customerPhone
= null
Attributes
- #[Column]
- $name: 'customer_phone'
- $type: 'string'
- $length: 255
- $nullable: true
$customerPostcode
protected
string|null
$customerPostcode
= null
Attributes
- #[Column]
- $name: 'customer_postcode'
- $type: 'string'
- $length: 20
- $nullable: true
$customerRegNo
protected
string|null
$customerRegNo
= null
Attributes
- #[Column]
- $name: 'customer_reg_no'
- $type: 'string'
- $length: 255
- $nullable: true
$customerStreet
protected
string|null
$customerStreet
= null
Attributes
- #[Column]
- $name: 'customer_street'
- $type: 'string'
- $length: 255
- $nullable: true
$customerVatId
protected
string|null
$customerVatId
= null
Attributes
- #[Column]
- $name: 'customer_vat_id'
- $type: 'string'
- $length: 255
- $nullable: true
$customerVatIdCheckId
Applied VAT id check (`cms_system_vat_id_checks`): consultation number or manual proof.
protected
int|null
$customerVatIdCheckId
= null
Attributes
- #[Column]
- $name: 'customer_vat_id_check_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$customerVatIdOutageCheckId
Record of a VIES outage on the supply date.
protected
int|null
$customerVatIdOutageCheckId
= null
Attributes
- #[Column]
- $name: 'customer_vat_id_outage_check_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$customerVatIdVerified
Null means the VAT id does not matter (empty or domestic); false is unverified; true is verified.
protected
bool|null
$customerVatIdVerified
= null
Attributes
- #[Column]
- $name: 'customer_vat_id_verified'
- $type: 'boolean'
- $nullable: true
$customerVatIdVerifiedAt
protected
DateTime|null
$customerVatIdVerifiedAt
= null
Attributes
- #[Column]
- $name: 'customer_vat_id_verified_at'
- $type: 'datetime'
- $nullable: true
$expeditionCode
protected
string|null
$expeditionCode
= null
Attributes
- #[Column]
- $name: 'expedition_code'
- $type: 'string'
- $length: 80
- $nullable: true
$expeditionDatetime
protected
DateTime|null
$expeditionDatetime
= null
Attributes
- #[Column]
- $name: 'expedition_datetime'
- $type: 'datetime'
- $nullable: true
$expeditionInformations
protected
string|null
$expeditionInformations
= null
Attributes
- #[Column]
- $name: 'expedition_informations'
- $type: 'text'
- $nullable: true
$expeditionShipper
protected
TExpeditionShipper|null
$expeditionShipper
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Eshop\Models\Entities\Shipper::class
- #[JoinColumn]
- $name: 'expedition_shipper_id'
- $referencedColumnName: 'shipper_id'
- $nullable: true
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\Eshop\Models\Entities\Shipper::class
- $fetch: 'LAZY'
$expeditionShipperBranchId
protected
int|null
$expeditionShipperBranchId
= null
Attributes
- #[Column]
- $name: 'expedition_shipper_branch_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- $nullable: true
$gifts
protected
Collection<int, OrderGift>
$gifts
Attributes
- #[CollectionOf]
- \App\UI\Admin\Eshop\Models\Entities\OrderGift::class
- $owned: true
- #[OneToMany]
- $targetEntity: \App\UI\Admin\Eshop\Models\Entities\OrderGift::class
- $mappedBy: 'order'
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
- $fetch: 'LAZY'
$gridInvoices
protected
array<int, Invoice>
$gridInvoices
= []
Attributes
- #[Transient]
$iban
protected
string|null
$iban
= null
Attributes
- #[Column]
- $name: 'iban'
- $type: 'string'
- $length: 255
- $nullable: true
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'order_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$informations
protected
string|null
$informations
= null
Attributes
- #[Column]
- $name: 'informations'
- $type: 'text'
- $nullable: true
$insertDatetime
protected
DateTime|null
$insertDatetime
= null
Attributes
- #[Column]
- $name: 'insert_datetime'
- $type: 'datetime'
$insertUserIp
protected
string|null
$insertUserIp
= null
Attributes
- #[Column]
- $name: 'insert_user_ip'
- $type: 'string'
- $length: 45
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$invoicedStatus
protected
int|null
$invoicedStatus
= null
Attributes
- #[Column]
- $name: 'invoiced_status'
- $type: 'integer'
- $nullable: true
$isCancelled
protected
bool
$isCancelled
= false
Attributes
- #[Column]
- $name: 'is_cancelled'
- $type: 'boolean'
$items
protected
Collection<int, OrderItem>
$items
Attributes
- #[CollectionOf]
- \App\UI\Admin\Eshop\Models\Entities\OrderItem::class
- $owned: true
- #[OneToMany]
- $targetEntity: \App\UI\Admin\Eshop\Models\Entities\OrderItem::class
- $mappedBy: 'order'
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
- $fetch: 'LAZY'
$language
protected
TLanguage|null
$language
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\System\Models\Entities\Language::class
- #[JoinColumn]
- $name: 'cms_system_languages_language_id'
- $referencedColumnName: 'language_id'
- $nullable: true
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\System\Models\Entities\Language::class
- $fetch: 'LAZY'
$localization
Invoice localization: number and currency formats come from here, not from the current request.
protected
object|null
$localization
= null
Load it with ->include(['localization']), like the currency.
Attributes
- #[EntityOf]
- \App\UI\Admin\System\Models\Entities\Localization::class
- #[JoinColumn]
- $name: 'cms_system_localizations_localization_id'
- $referencedColumnName: 'localization_id'
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\System\Models\Entities\Localization::class
- $fetch: 'LAZY'
$orderNumber
protected
string
$orderNumber
= ''
Attributes
- #[Column]
- $name: 'order_number'
- $type: 'string'
- $length: 30
$payment
protected
TPayment|null
$payment
= null
last matched payment (denormalized; the full list is $payments)
Attributes
- #[EntityOf]
- \App\UI\Admin\System\Models\Entities\Payment::class
- #[JoinColumn]
- $name: 'cms_system_payments_payment_id'
- $referencedColumnName: 'payment_id'
- $nullable: true
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\System\Models\Entities\Payment::class
- $fetch: 'LAZY'
$paymentMethod
protected
OrderPaymentMethod|null
$paymentMethod
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Eshop\Models\Entities\OrderPaymentMethod::class
- #[OneToOne]
- $targetEntity: \App\UI\Admin\Eshop\Models\Entities\OrderPaymentMethod::class
- $mappedBy: 'order'
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
- $fetch: 'LAZY'
$paymentRegion
protected
TPaymentRegion|null
$paymentRegion
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\System\Models\Entities\PaymentRegion::class
- #[JoinColumn]
- $name: 'cms_system_payment_regions_payment_region_id'
- $referencedColumnName: 'payment_region_id'
- $nullable: true
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\System\Models\Entities\PaymentRegion::class
- $fetch: 'LAZY'
$payments
protected
Collection<int, OrderPayment>
$payments
Attributes
- #[CollectionOf]
- \App\UI\Admin\Eshop\Models\Entities\OrderPayment::class
- $owned: true
- #[OneToMany]
- $targetEntity: \App\UI\Admin\Eshop\Models\Entities\OrderPayment::class
- $mappedBy: 'order'
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
- $fetch: 'LAZY'
$region
protected
TRegion|null
$region
= null
geographic region of the customer
Attributes
- #[EntityOf]
- \App\UI\Admin\System\Models\Entities\Region::class
- #[JoinColumn]
- $name: 'cms_system_regions_region_id'
- $referencedColumnName: 'region_id'
- $nullable: true
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\System\Models\Entities\Region::class
- $fetch: 'LAZY'
$reservationExpiresAt
protected
DateTime|null
$reservationExpiresAt
= null
Attributes
- #[Column]
- $name: 'reservation_expires_at'
- $type: 'datetime'
- $nullable: true
$roundedTotalPrice
protected
string
$roundedTotalPrice
= '0.000'
Attributes
- #[Column]
- $name: 'rounded_total_price'
- $type: 'decimal'
- $precision: 10
- $scale: 3
$roundedTotalPriceWithVat
protected
string
$roundedTotalPriceWithVat
= '0.000'
Attributes
- #[Column]
- $name: 'rounded_total_price_with_vat'
- $type: 'decimal'
- $precision: 10
- $scale: 3
$rounding
protected
string
$rounding
= '0.000'
Attributes
- #[Column]
- $name: 'rounding'
- $type: 'decimal'
- $precision: 10
- $scale: 3
$roundingVat
protected
string
$roundingVat
= '0.000'
Attributes
- #[Column]
- $name: 'rounding_vat'
- $type: 'decimal'
- $precision: 10
- $scale: 3
$sellerBankAccountId
protected
int|null
$sellerBankAccountId
= null
Attributes
- #[Column]
- $name: 'cms_mod_invoicer_seller_bank_accounts_seller_bank_account_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- $nullable: true
$sellerCity
protected
string|null
$sellerCity
= null
Attributes
- #[Column]
- $name: 'seller_city'
- $type: 'string'
- $length: 255
- $nullable: true
$sellerContactId
protected
int|null
$sellerContactId
= null
Attributes
- #[Column]
- $name: 'cms_mod_invoicer_seller_contacts_seller_contact_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- $nullable: true
$sellerCountry
protected
string|null
$sellerCountry
= null
Attributes
- #[Column]
- $name: 'seller_country'
- $type: 'string'
- $length: 255
- $nullable: true
$sellerEmail
protected
string|null
$sellerEmail
= null
Attributes
- #[Column]
- $name: 'seller_email'
- $type: 'string'
- $length: 255
- $nullable: true
$sellerId
protected
int|null
$sellerId
= null
Attributes
- #[Column]
- $name: 'cms_mod_invoicer_sellers_seller_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- $nullable: true
$sellerInformations
protected
string|null
$sellerInformations
= null
Attributes
- #[Column]
- $name: 'seller_informations'
- $type: 'text'
- $nullable: true
$sellerName
protected
string|null
$sellerName
= null
Attributes
- #[Column]
- $name: 'seller_name'
- $type: 'string'
- $length: 255
- $nullable: true
$sellerPhone
protected
string|null
$sellerPhone
= null
Attributes
- #[Column]
- $name: 'seller_phone'
- $type: 'string'
- $length: 255
- $nullable: true
$sellerPostcode
protected
string|null
$sellerPostcode
= null
Attributes
- #[Column]
- $name: 'seller_postcode'
- $type: 'string'
- $length: 20
- $nullable: true
$sellerRegNo
protected
string|null
$sellerRegNo
= null
Attributes
- #[Column]
- $name: 'seller_reg_no'
- $type: 'string'
- $length: 255
- $nullable: true
$sellerStreet
protected
string|null
$sellerStreet
= null
Attributes
- #[Column]
- $name: 'seller_street'
- $type: 'string'
- $length: 255
- $nullable: true
$sellerVatId
protected
string|null
$sellerVatId
= null
Attributes
- #[Column]
- $name: 'seller_vat_id'
- $type: 'string'
- $length: 255
- $nullable: true
$sellerVatInformations
protected
string|null
$sellerVatInformations
= null
Attributes
- #[Column]
- $name: 'seller_vat_informations'
- $type: 'text'
- $nullable: true
$shipper
protected
OrderShipper|null
$shipper
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Eshop\Models\Entities\OrderShipper::class
- #[OneToOne]
- $targetEntity: \App\UI\Admin\Eshop\Models\Entities\OrderShipper::class
- $mappedBy: 'order'
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
- $fetch: 'LAZY'
$status
protected
TStatus|null
$status
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Eshop\Models\Entities\OrderStatus::class
- #[JoinColumn]
- $name: 'cms_mod_eshop_order_statuses_order_status_id'
- $referencedColumnName: 'order_status_id'
- $nullable: true
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\Eshop\Models\Entities\OrderStatus::class
- $fetch: 'LAZY'
$statusInformations
protected
string|null
$statusInformations
= null
Attributes
- #[Column]
- $name: 'status_informations'
- $type: 'text'
- $nullable: true
$stockDocumentId
protected
int|null
$stockDocumentId
= null
Attributes
- #[Column]
- $name: 'stock_document_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- $nullable: true
$stockState
protected
string
$stockState
= OrderStockState::NONE
Attributes
- #[Column]
- $name: 'stock_state'
- $type: 'string'
- $length: 20
$summaryReportCode
Supply code for the summary report (`3` services, `0` goods); null means it is not reported.
protected
string|null
$summaryReportCode
= null
Attributes
- #[Column]
- $name: 'summary_report_code'
- $type: 'string'
- $length: 1
- $nullable: true
- $options: ['fixed' => true]
$swift
protected
string|null
$swift
= null
Attributes
- #[Column]
- $name: 'swift'
- $type: 'string'
- $length: 255
- $nullable: true
$taxCountryCode
Country of the applied rate (null without VAT).
protected
string|null
$taxCountryCode
= null
Attributes
- #[Column]
- $name: 'tax_country_code'
- $type: 'string'
- $length: 2
- $nullable: true
- $options: ['fixed' => true]
$taxDate
Date of the rate and of the seller status.
protected
DateTime|null
$taxDate
= null
Attributes
- #[Column]
- $name: 'tax_date'
- $type: 'date'
- $nullable: true
$taxFlags
protected
array<int, string>|null
$taxFlags
= null
TaxFlag codes
Attributes
- #[Column]
- $name: 'tax_flags'
- $type: 'json'
- $nullable: true
$taxNote
Note in the document language (plus Czech), resolved at creation.
protected
string|null
$taxNote
= null
Attributes
- #[Column]
- $name: 'tax_note'
- $type: 'text'
- $nullable: true
$taxTreatment
Treatment code; on a payment also the markers `INTERMEDIARY` and `CREDIT_REDEMPTION`.
protected
string|null
$taxTreatment
= null
Attributes
- #[Column]
- $name: 'tax_treatment'
- $type: 'string'
- $length: 24
- $nullable: true
$totalPrice
protected
string
$totalPrice
= '0.000'
Attributes
- #[Column]
- $name: 'total_price'
- $type: 'decimal'
- $precision: 10
- $scale: 3
$totalPriceWithVat
protected
string
$totalPriceWithVat
= '0.000'
Attributes
- #[Column]
- $name: 'total_price_with_vat'
- $type: 'decimal'
- $precision: 10
- $scale: 3
$updateDatetime
protected
DateTime|null
$updateDatetime
= null
Attributes
- #[Column]
- $name: 'update_datetime'
- $type: 'datetime'
- $nullable: true
$updateUserId
protected
int|null
$updateUserId
= null
Attributes
- #[Column]
- $name: 'update_user_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- $nullable: true
$updateUserIp
protected
string|null
$updateUserIp
= null
Attributes
- #[Column]
- $name: 'update_user_ip'
- $type: 'string'
- $length: 45
- $nullable: true
- #[PersonalData]
- PersonalDataKind::Hidden
$useDeliveryAddress
protected
bool
$useDeliveryAddress
= false
Attributes
- #[Column]
- $name: 'use_delivery_address'
- $type: 'boolean'
$user
protected
TUser|null
$user
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\System\Models\Entities\User::class
- #[JoinColumn]
- $name: 'cms_system_users_user_id'
- $referencedColumnName: 'user_id'
- $nullable: true
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\System\Models\Entities\User::class
- $fetch: 'LAZY'
$userDiscountPercents
protected
string
$userDiscountPercents
= '0.00'
Attributes
- #[Column]
- $name: 'user_discount_percents'
- $type: 'decimal'
- $precision: 5
- $scale: 2
- $options: ['unsigned' => true]
$userIsUpdated
protected
bool
$userIsUpdated
= false
Attributes
- #[Column]
- $name: 'user_is_updated'
- $type: 'boolean'
$userType
protected
TUserType|null
$userType
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\System\Models\Entities\UserType::class
- #[JoinColumn]
- $name: 'cms_system_user_types_user_type_id'
- $referencedColumnName: 'user_type_id'
- $nullable: true
- $onDelete: 'SET NULL'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\System\Models\Entities\UserType::class
- $fetch: 'LAZY'
$variableSymbol
protected
string|null
$variableSymbol
= null
Attributes
- #[Column]
- $name: 'variable_symbol'
- $type: 'string'
- $length: 50
- $nullable: true
$vouchers
protected
Collection<int, OrderVoucher>
$vouchers
Attributes
- #[CollectionOf]
- \App\UI\Admin\Eshop\Models\Entities\OrderVoucher::class
- $owned: true
- #[OneToMany]
- $targetEntity: \App\UI\Admin\Eshop\Models\Entities\OrderVoucher::class
- $mappedBy: 'order'
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
- $fetch: 'LAZY'
$withVat
protected
bool
$withVat
= true
Attributes
- #[Column]
- $name: 'with_vat'
- $type: 'boolean'
Methods
__construct()
public
__construct([int|null $id = null ][, string $orderNumber = '' ][, string|null $variableSymbol = null ][, mixed $user = null ][, mixed $language = null ][, mixed $currency = null ][, mixed $status = null ][, mixed $userType = null ][, mixed $paymentRegion = null ][, string $userDiscountPercents = '0.00' ][, bool $withVat = true ][, string $totalPrice = '0.000' ][, string $totalPriceWithVat = '0.000' ][, string $roundedTotalPrice = '0.000' ][, string $roundedTotalPriceWithVat = '0.000' ][, string $rounding = '0.000' ][, string $roundingVat = '0.000' ][, int $buyerType = 0 ][, int|null $sellerId = null ][, int|null $sellerContactId = null ][, int|null $sellerBankAccountId = null ][, string|null $sellerName = null ][, string|null $sellerStreet = null ][, string|null $sellerCity = null ][, string|null $sellerPostcode = null ][, string|null $sellerCountry = null ][, string|null $sellerRegNo = null ][, string|null $sellerVatId = null ][, string|null $sellerEmail = null ][, string|null $sellerPhone = null ][, string|null $sellerInformations = null ][, string|null $sellerVatInformations = null ][, string|null $bankName = null ][, string|null $bankAccount = null ][, string|null $iban = null ][, string|null $swift = null ][, int|null $customerId = null ][, int|null $customerContactId = null ][, string|null $customerCompanyName = null ][, string|null $customerRegNo = null ][, string|null $customerVatId = null ][, string|null $customerFirstname = null ][, string|null $customerLastname = null ][, string|null $customerStreet = null ][, string|null $customerCity = null ][, string|null $customerPostcode = null ][, string|null $customerCountry = null ][, string|null $customerCountryCode = null ][, string|null $customerEmail = null ][, string|null $customerPhone = null ][, mixed $region = null ][, string|null $customerDlvName = null ][, string|null $customerDlvStreet = null ][, string|null $customerDlvCity = null ][, string|null $customerDlvPostcode = null ][, string|null $customerDlvCountry = null ][, string|null $customerDlvCountryCode = null ][, string|null $customerDlvInformations = null ][, string|null $customerInformations = null ][, bool $useDeliveryAddress = false ][, string|null $informations = null ][, string|null $statusInformations = null ][, DateTime|null $expeditionDatetime = null ][, mixed $expeditionShipper = null ][, int|null $expeditionShipperBranchId = null ][, string|null $expeditionCode = null ][, string|null $expeditionInformations = null ][, mixed $payment = null ][, string $stockState = OrderStockState::NONE ][, int|null $stockDocumentId = null ][, DateTime|null $reservationExpiresAt = null ][, int|null $invoicedStatus = null ][, bool $isCancelled = false ][, bool $userIsUpdated = false ][, DateTime|null $insertDatetime = null ][, string|null $insertUserIp = null ][, DateTime|null $updateDatetime = null ][, int|null $updateUserId = null ][, string|null $updateUserIp = null ][, Collection $items = new ArrayCollection() ][, mixed $shipper = null ][, mixed $paymentMethod = null ][, Collection $vouchers = new ArrayCollection() ][, Collection $gifts = new ArrayCollection() ][, Collection $payments = new ArrayCollection() ][, mixed $localization = null ][, int|null $localizationId = null ]) : mixed
Parameters
- $id : int|null = null
- $orderNumber : string = ''
- $variableSymbol : string|null = null
- $user : mixed = null
- $language : mixed = null
- $currency : mixed = null
- $status : mixed = null
- $userType : mixed = null
- $paymentRegion : mixed = null
- $userDiscountPercents : string = '0.00'
- $withVat : bool = true
- $totalPrice : string = '0.000'
- $totalPriceWithVat : string = '0.000'
- $roundedTotalPrice : string = '0.000'
- $roundedTotalPriceWithVat : string = '0.000'
- $rounding : string = '0.000'
- $roundingVat : string = '0.000'
- $buyerType : int = 0
- $sellerId : int|null = null
- $sellerContactId : int|null = null
- $sellerBankAccountId : int|null = null
- $sellerName : string|null = null
- $sellerStreet : string|null = null
- $sellerCity : string|null = null
- $sellerPostcode : string|null = null
- $sellerCountry : string|null = null
- $sellerRegNo : string|null = null
- $sellerVatId : string|null = null
- $sellerEmail : string|null = null
- $sellerPhone : string|null = null
- $sellerInformations : string|null = null
- $sellerVatInformations : string|null = null
- $bankName : string|null = null
- $bankAccount : string|null = null
- $iban : string|null = null
- $swift : string|null = null
- $customerId : int|null = null
- $customerContactId : int|null = null
- $customerCompanyName : string|null = null
- $customerRegNo : string|null = null
- $customerVatId : string|null = null
- $customerFirstname : string|null = null
- $customerLastname : string|null = null
- $customerStreet : string|null = null
- $customerCity : string|null = null
- $customerPostcode : string|null = null
- $customerCountry : string|null = null
- $customerCountryCode : string|null = null
- $customerEmail : string|null = null
- $customerPhone : string|null = null
- $region : mixed = null
- $customerDlvName : string|null = null
- $customerDlvStreet : string|null = null
- $customerDlvCity : string|null = null
- $customerDlvPostcode : string|null = null
- $customerDlvCountry : string|null = null
- $customerDlvCountryCode : string|null = null
- $customerDlvInformations : string|null = null
- $customerInformations : string|null = null
- $useDeliveryAddress : bool = false
- $informations : string|null = null
- $statusInformations : string|null = null
- $expeditionDatetime : DateTime|null = null
- $expeditionShipper : mixed = null
- $expeditionShipperBranchId : int|null = null
- $expeditionCode : string|null = null
- $expeditionInformations : string|null = null
- $payment : mixed = null
- $stockState : string = OrderStockState::NONE
- $stockDocumentId : int|null = null
- $reservationExpiresAt : DateTime|null = null
- $invoicedStatus : int|null = null
- $isCancelled : bool = false
- $userIsUpdated : bool = false
- $insertDatetime : DateTime|null = null
- $insertUserIp : string|null = null
- $updateDatetime : DateTime|null = null
- $updateUserId : int|null = null
- $updateUserIp : string|null = null
- $items : Collection = new ArrayCollection()
- $shipper : mixed = null
- $paymentMethod : mixed = null
- $vouchers : Collection = new ArrayCollection()
- $gifts : Collection = new ArrayCollection()
- $payments : Collection = new ArrayCollection()
- $localization : mixed = null
- $localizationId : int|null = null
addGift()
public
addGift(TOrderGift $gift) : $this
Parameters
- $gift : TOrderGift
Return values
$thisaddItem()
public
addItem(TItem $item) : $this
Parameters
- $item : TItem
Return values
$thisaddPaymentRel()
public
addPaymentRel(TOrderPayment $payment) : $this
Parameters
- $payment : TOrderPayment
Return values
$thisaddVoucher()
public
addVoucher(TOrderVoucher $voucher) : $this
Parameters
- $voucher : TOrderVoucher
Return values
$thiscallInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAllTraits()
Returns all traits the class uses, including those used by parent classes and nested traits.
public
getAllTraits() : array<string, string>
Return values
array<string, string>getBankAccount()
public
getBankAccount() : string|null
Return values
string|nullgetBankName()
public
getBankName() : string|null
Return values
string|nullgetBuyerType()
public
getBuyerType() : int
Return values
intgetCurrency()
public
getCurrency() : TCurrency|null
Return values
TCurrency|nullgetCustomerCity()
public
getCustomerCity() : string|null
Return values
string|nullgetCustomerCompanyName()
public
getCustomerCompanyName() : string|null
Return values
string|nullgetCustomerContactId()
public
getCustomerContactId() : int|null
Return values
int|nullgetCustomerCountry()
public
getCustomerCountry() : string|null
Return values
string|nullgetCustomerCountryCode()
public
getCustomerCountryCode() : string|null
Return values
string|nullgetCustomerDlvCity()
public
getCustomerDlvCity() : string|null
Return values
string|nullgetCustomerDlvCountry()
public
getCustomerDlvCountry() : string|null
Return values
string|nullgetCustomerDlvCountryCode()
public
getCustomerDlvCountryCode() : string|null
Return values
string|nullgetCustomerDlvInformations()
public
getCustomerDlvInformations() : string|null
Return values
string|nullgetCustomerDlvName()
public
getCustomerDlvName() : string|null
Return values
string|nullgetCustomerDlvPostcode()
public
getCustomerDlvPostcode() : string|null
Return values
string|nullgetCustomerDlvStreet()
public
getCustomerDlvStreet() : string|null
Return values
string|nullgetCustomerEmail()
public
getCustomerEmail() : string|null
Return values
string|nullgetCustomerFirstname()
public
getCustomerFirstname() : string|null
Return values
string|nullgetCustomerId()
public
getCustomerId() : int|null
Return values
int|nullgetCustomerInformations()
public
getCustomerInformations() : string|null
Return values
string|nullgetCustomerLastname()
public
getCustomerLastname() : string|null
Return values
string|nullgetCustomerPhone()
public
getCustomerPhone() : string|null
Return values
string|nullgetCustomerPostcode()
public
getCustomerPostcode() : string|null
Return values
string|nullgetCustomerRegNo()
public
getCustomerRegNo() : string|null
Return values
string|nullgetCustomerStreet()
public
getCustomerStreet() : string|null
Return values
string|nullgetCustomerVatId()
public
getCustomerVatId() : string|null
Return values
string|nullgetCustomerVatIdCheckId()
public
getCustomerVatIdCheckId() : int|null
Return values
int|nullgetCustomerVatIdOutageCheckId()
public
getCustomerVatIdOutageCheckId() : int|null
Return values
int|nullgetCustomerVatIdVerified()
public
getCustomerVatIdVerified() : bool|null
Return values
bool|nullgetCustomerVatIdVerifiedAt()
public
getCustomerVatIdVerifiedAt() : DateTime|null
Return values
DateTime|nullgetExpeditionCode()
public
getExpeditionCode() : string|null
Return values
string|nullgetExpeditionDatetime()
public
getExpeditionDatetime() : DateTime|null
Return values
DateTime|nullgetExpeditionInformations()
public
getExpeditionInformations() : string|null
Return values
string|nullgetExpeditionShipper()
public
getExpeditionShipper() : TExpeditionShipper|null
Return values
TExpeditionShipper|nullgetExpeditionShipperBranchId()
public
getExpeditionShipperBranchId() : int|null
Return values
int|nullgetGifts()
public
getGifts() : Collection<int, TOrderGift>
Return values
Collection<int, TOrderGift>getGridInvoices()
public
getGridInvoices() : array<int, Invoice>
Return values
array<int, Invoice>getIban()
public
getIban() : string|null
Return values
string|nullgetId()
public
getId() : int|null
Return values
int|nullgetInformations()
public
getInformations() : string|null
Return values
string|nullgetInsertDatetime()
public
getInsertDatetime() : DateTime|null
Return values
DateTime|nullgetInsertUserIp()
public
getInsertUserIp() : string|null
Return values
string|nullgetInvoicedStatus()
public
getInvoicedStatus() : int|null
Return values
int|nullgetIsCancelled()
public
getIsCancelled() : bool
Return values
boolgetItems()
public
getItems() : Collection<int, TItem>
Return values
Collection<int, TItem>getLanguage()
public
getLanguage() : TLanguage|null
Return values
TLanguage|nullgetLocalization()
public
getLocalization() : object|null
Return values
object|nullgetLocalizationId()
Prefers the object over the scalar (a freshly set localization wins over the mirror loaded from the DB). `$localization` is an untyped `object`, hence the guard instead of a plain `?->getId()`: without it PHPStan reports `object::getId()` and a foreign object in the association would fail at runtime.
public
getLocalizationId() : int|null
Return values
int|nullgetOrderNumber()
public
getOrderNumber() : string
Return values
stringgetOwnerUserId()
public
getOwnerUserId() : int|null
Return values
int|nullgetPayment()
public
getPayment() : TPayment|null
Return values
TPayment|nullgetPaymentMethod()
public
getPaymentMethod() : TOrderPaymentMethod|null
Return values
TOrderPaymentMethod|nullgetPaymentRegion()
public
getPaymentRegion() : TPaymentRegion|null
Return values
TPaymentRegion|nullgetPayments()
public
getPayments() : Collection<int, TOrderPayment>
Return values
Collection<int, TOrderPayment>getRegion()
public
getRegion() : TRegion|null
Return values
TRegion|nullgetReservationExpiresAt()
public
getReservationExpiresAt() : DateTime|null
Return values
DateTime|nullgetRoundedTotalPrice()
public
getRoundedTotalPrice() : string
Return values
stringgetRoundedTotalPriceWithVat()
public
getRoundedTotalPriceWithVat() : string
Return values
stringgetRounding()
public
getRounding() : string
Return values
stringgetRoundingVat()
public
getRoundingVat() : string
Return values
stringgetSellerBankAccountId()
public
getSellerBankAccountId() : int|null
Return values
int|nullgetSellerCity()
public
getSellerCity() : string|null
Return values
string|nullgetSellerContactId()
public
getSellerContactId() : int|null
Return values
int|nullgetSellerCountry()
public
getSellerCountry() : string|null
Return values
string|nullgetSellerEmail()
public
getSellerEmail() : string|null
Return values
string|nullgetSellerId()
public
getSellerId() : int|null
Return values
int|nullgetSellerInformations()
public
getSellerInformations() : string|null
Return values
string|nullgetSellerName()
public
getSellerName() : string|null
Return values
string|nullgetSellerPhone()
public
getSellerPhone() : string|null
Return values
string|nullgetSellerPostcode()
public
getSellerPostcode() : string|null
Return values
string|nullgetSellerRegNo()
public
getSellerRegNo() : string|null
Return values
string|nullgetSellerStreet()
public
getSellerStreet() : string|null
Return values
string|nullgetSellerVatId()
public
getSellerVatId() : string|null
Return values
string|nullgetSellerVatInformations()
public
getSellerVatInformations() : string|null
Return values
string|nullgetShipper()
public
getShipper() : TOrderShipper|null
Return values
TOrderShipper|nullgetStatus()
public
getStatus() : TStatus|null
Return values
TStatus|nullgetStatusInformations()
public
getStatusInformations() : string|null
Return values
string|nullgetStockDocumentId()
public
getStockDocumentId() : int|null
Return values
int|nullgetStockState()
public
getStockState() : string
Return values
stringgetSummaryReportCode()
public
getSummaryReportCode() : string|null
Return values
string|nullgetSwift()
public
getSwift() : string|null
Return values
string|nullgetTaxCountryCode()
public
getTaxCountryCode() : string|null
Return values
string|nullgetTaxDate()
public
getTaxDate() : DateTime|null
Return values
DateTime|nullgetTaxFlags()
public
getTaxFlags() : array<int, string>|null
Return values
array<int, string>|nullgetTaxNote()
public
getTaxNote() : string|null
Return values
string|nullgetTaxTreatment()
public
getTaxTreatment() : string|null
Return values
string|nullgetTotalPrice()
public
getTotalPrice() : string
Return values
stringgetTotalPriceWithVat()
public
getTotalPriceWithVat() : string
Return values
stringgetUpdateDatetime()
public
getUpdateDatetime() : DateTime|null
Return values
DateTime|nullgetUpdateUserId()
public
getUpdateUserId() : int|null
Return values
int|nullgetUpdateUserIp()
public
getUpdateUserIp() : string|null
Return values
string|nullgetUseDeliveryAddress()
public
getUseDeliveryAddress() : bool
Return values
boolgetUser()
public
getUser() : TUser|null
Return values
TUser|nullgetUserDiscountPercents()
public
getUserDiscountPercents() : string
Return values
stringgetUserDiscountPercentsAsFloat()
public
getUserDiscountPercentsAsFloat() : float
Return values
floatgetUserIsUpdated()
public
getUserIsUpdated() : bool
Return values
boolgetUserType()
public
getUserType() : TUserType|null
Return values
TUserType|nullgetVariableSymbol()
public
getVariableSymbol() : string|null
Return values
string|nullgetVouchers()
public
getVouchers() : Collection<int, TOrderVoucher>
Return values
Collection<int, TOrderVoucher>getWithVat()
public
getWithVat() : bool
Return values
boolhasTaxFlag()
public
hasTaxFlag(string $flag) : bool
Parameters
- $flag : string
Return values
boolisCancelled()
public
isCancelled() : bool
Return values
boolisPersisted()
public
isPersisted() : bool
Return values
boolsetBankAccount()
public
setBankAccount(string|null $bankAccount) : $this
Parameters
- $bankAccount : string|null
Return values
$thissetBankName()
public
setBankName(string|null $bankName) : $this
Parameters
- $bankName : string|null
Return values
$thissetBuyerType()
public
setBuyerType(int $buyerType) : $this
Parameters
- $buyerType : int
Return values
$thissetCurrency()
public
setCurrency(TCurrency|null $currency) : $this
Parameters
- $currency : TCurrency|null
Return values
$thissetCustomerCity()
public
setCustomerCity(string|null $customerCity) : $this
Parameters
- $customerCity : string|null
Return values
$thissetCustomerCompanyName()
public
setCustomerCompanyName(string|null $customerCompanyName) : $this
Parameters
- $customerCompanyName : string|null
Return values
$thissetCustomerContactId()
public
setCustomerContactId(int|null $customerContactId) : $this
Parameters
- $customerContactId : int|null
Return values
$thissetCustomerCountry()
public
setCustomerCountry(string|null $customerCountry) : $this
Parameters
- $customerCountry : string|null
Return values
$thissetCustomerCountryCode()
public
setCustomerCountryCode(string|null $customerCountryCode) : $this
Parameters
- $customerCountryCode : string|null
Return values
$thissetCustomerDlvCity()
public
setCustomerDlvCity(string|null $customerDlvCity) : $this
Parameters
- $customerDlvCity : string|null
Return values
$thissetCustomerDlvCountry()
public
setCustomerDlvCountry(string|null $customerDlvCountry) : $this
Parameters
- $customerDlvCountry : string|null
Return values
$thissetCustomerDlvCountryCode()
public
setCustomerDlvCountryCode(string|null $customerDlvCountryCode) : $this
Parameters
- $customerDlvCountryCode : string|null
Return values
$thissetCustomerDlvInformations()
public
setCustomerDlvInformations(string|null $customerDlvInformations) : $this
Parameters
- $customerDlvInformations : string|null
Return values
$thissetCustomerDlvName()
public
setCustomerDlvName(string|null $customerDlvName) : $this
Parameters
- $customerDlvName : string|null
Return values
$thissetCustomerDlvPostcode()
public
setCustomerDlvPostcode(string|null $customerDlvPostcode) : $this
Parameters
- $customerDlvPostcode : string|null
Return values
$thissetCustomerDlvStreet()
public
setCustomerDlvStreet(string|null $customerDlvStreet) : $this
Parameters
- $customerDlvStreet : string|null
Return values
$thissetCustomerEmail()
public
setCustomerEmail(string|null $customerEmail) : $this
Parameters
- $customerEmail : string|null
Return values
$thissetCustomerFirstname()
public
setCustomerFirstname(string|null $customerFirstname) : $this
Parameters
- $customerFirstname : string|null
Return values
$thissetCustomerId()
public
setCustomerId(int|null $customerId) : $this
Parameters
- $customerId : int|null
Return values
$thissetCustomerInformations()
public
setCustomerInformations(string|null $customerInformations) : $this
Parameters
- $customerInformations : string|null
Return values
$thissetCustomerLastname()
public
setCustomerLastname(string|null $customerLastname) : $this
Parameters
- $customerLastname : string|null
Return values
$thissetCustomerPhone()
public
setCustomerPhone(string|null $customerPhone) : $this
Parameters
- $customerPhone : string|null
Return values
$thissetCustomerPostcode()
public
setCustomerPostcode(string|null $customerPostcode) : $this
Parameters
- $customerPostcode : string|null
Return values
$thissetCustomerRegNo()
public
setCustomerRegNo(string|null $customerRegNo) : $this
Parameters
- $customerRegNo : string|null
Return values
$thissetCustomerStreet()
public
setCustomerStreet(string|null $customerStreet) : $this
Parameters
- $customerStreet : string|null
Return values
$thissetCustomerVatId()
public
setCustomerVatId(string|null $customerVatId) : $this
Parameters
- $customerVatId : string|null
Return values
$thissetCustomerVatIdCheckId()
public
setCustomerVatIdCheckId(int|null $customerVatIdCheckId) : static
Parameters
- $customerVatIdCheckId : int|null
Return values
staticsetCustomerVatIdOutageCheckId()
public
setCustomerVatIdOutageCheckId(int|null $customerVatIdOutageCheckId) : static
Parameters
- $customerVatIdOutageCheckId : int|null
Return values
staticsetCustomerVatIdVerified()
public
setCustomerVatIdVerified(bool|null $customerVatIdVerified) : static
Parameters
- $customerVatIdVerified : bool|null
Return values
staticsetCustomerVatIdVerifiedAt()
public
setCustomerVatIdVerifiedAt(DateTime|null $customerVatIdVerifiedAt) : static
Parameters
- $customerVatIdVerifiedAt : DateTime|null
Return values
staticsetExpeditionCode()
public
setExpeditionCode(string|null $expeditionCode) : $this
Parameters
- $expeditionCode : string|null
Return values
$thissetExpeditionDatetime()
public
setExpeditionDatetime(DateTime|null $expeditionDatetime) : $this
Parameters
- $expeditionDatetime : DateTime|null
Return values
$thissetExpeditionInformations()
public
setExpeditionInformations(string|null $expeditionInformations) : $this
Parameters
- $expeditionInformations : string|null
Return values
$thissetExpeditionShipper()
public
setExpeditionShipper(TExpeditionShipper|null $expeditionShipper) : $this
Parameters
- $expeditionShipper : TExpeditionShipper|null
Return values
$thissetExpeditionShipperBranchId()
public
setExpeditionShipperBranchId(int|null $expeditionShipperBranchId) : $this
Parameters
- $expeditionShipperBranchId : int|null
Return values
$thissetGifts()
public
setGifts(Collection<int, TOrderGift>|array<int, TOrderGift> $gifts) : $this
Parameters
- $gifts : Collection<int, TOrderGift>|array<int, TOrderGift>
Return values
$thissetGridInvoices()
public
setGridInvoices(array<int, Invoice> $gridInvoices) : self
Parameters
- $gridInvoices : array<int, Invoice>
Return values
selfsetIban()
public
setIban(string|null $iban) : $this
Parameters
- $iban : string|null
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetInformations()
public
setInformations(string|null $informations) : $this
Parameters
- $informations : string|null
Return values
$thissetInsertDatetime()
public
setInsertDatetime(DateTime|null $insertDatetime) : $this
Parameters
- $insertDatetime : DateTime|null
Return values
$thissetInsertUserIp()
public
setInsertUserIp(string|null $insertUserIp) : $this
Parameters
- $insertUserIp : string|null
Return values
$thissetInvoicedStatus()
public
setInvoicedStatus(int|null $invoicedStatus) : $this
Parameters
- $invoicedStatus : int|null
Return values
$thissetIsCancelled()
public
setIsCancelled(bool $isCancelled) : $this
Parameters
- $isCancelled : bool
Return values
$thissetItems()
public
setItems(Collection<int, TItem>|array<int, TItem> $items) : $this
Parameters
- $items : Collection<int, TItem>|array<int, TItem>
Return values
$thissetLanguage()
public
setLanguage(TLanguage|null $language) : $this
Parameters
- $language : TLanguage|null
Return values
$thissetLocalization()
IMPORTANT: deliberately without the side effect `$this->localizationId = $localization?->getId()`.
public
setLocalization(object|null $localization) : $this
During two-phase hydration the setter runs before the shell receives its id and would overwrite the correctly loaded read-only scalar with null.
Parameters
- $localization : object|null
Return values
$thissetOrderNumber()
public
setOrderNumber(string $orderNumber) : $this
Parameters
- $orderNumber : string
Return values
$thissetPayment()
public
setPayment(TPayment|null $payment) : $this
Parameters
- $payment : TPayment|null
Return values
$thissetPaymentMethod()
public
setPaymentMethod(TOrderPaymentMethod|null $paymentMethod) : $this
Parameters
- $paymentMethod : TOrderPaymentMethod|null
Return values
$thissetPaymentRegion()
public
setPaymentRegion(TPaymentRegion|null $paymentRegion) : $this
Parameters
- $paymentRegion : TPaymentRegion|null
Return values
$thissetPayments()
public
setPayments(Collection<int, TOrderPayment>|array<int, TOrderPayment> $payments) : $this
Parameters
- $payments : Collection<int, TOrderPayment>|array<int, TOrderPayment>
Return values
$thissetRegion()
public
setRegion(TRegion|null $region) : $this
Parameters
- $region : TRegion|null
Return values
$thissetReservationExpiresAt()
public
setReservationExpiresAt(DateTime|null $reservationExpiresAt) : $this
Parameters
- $reservationExpiresAt : DateTime|null
Return values
$thissetRoundedTotalPrice()
public
setRoundedTotalPrice(string $roundedTotalPrice) : $this
Parameters
- $roundedTotalPrice : string
Return values
$thissetRoundedTotalPriceWithVat()
public
setRoundedTotalPriceWithVat(string $roundedTotalPriceWithVat) : $this
Parameters
- $roundedTotalPriceWithVat : string
Return values
$thissetRounding()
public
setRounding(string $rounding) : $this
Parameters
- $rounding : string
Return values
$thissetRoundingVat()
public
setRoundingVat(string $roundingVat) : $this
Parameters
- $roundingVat : string
Return values
$thissetSellerBankAccountId()
public
setSellerBankAccountId(int|null $sellerBankAccountId) : $this
Parameters
- $sellerBankAccountId : int|null
Return values
$thissetSellerCity()
public
setSellerCity(string|null $sellerCity) : $this
Parameters
- $sellerCity : string|null
Return values
$thissetSellerContactId()
public
setSellerContactId(int|null $sellerContactId) : $this
Parameters
- $sellerContactId : int|null
Return values
$thissetSellerCountry()
public
setSellerCountry(string|null $sellerCountry) : $this
Parameters
- $sellerCountry : string|null
Return values
$thissetSellerEmail()
public
setSellerEmail(string|null $sellerEmail) : $this
Parameters
- $sellerEmail : string|null
Return values
$thissetSellerId()
public
setSellerId(int|null $sellerId) : $this
Parameters
- $sellerId : int|null
Return values
$thissetSellerInformations()
public
setSellerInformations(string|null $sellerInformations) : $this
Parameters
- $sellerInformations : string|null
Return values
$thissetSellerName()
public
setSellerName(string|null $sellerName) : $this
Parameters
- $sellerName : string|null
Return values
$thissetSellerPhone()
public
setSellerPhone(string|null $sellerPhone) : $this
Parameters
- $sellerPhone : string|null
Return values
$thissetSellerPostcode()
public
setSellerPostcode(string|null $sellerPostcode) : $this
Parameters
- $sellerPostcode : string|null
Return values
$thissetSellerRegNo()
public
setSellerRegNo(string|null $sellerRegNo) : $this
Parameters
- $sellerRegNo : string|null
Return values
$thissetSellerStreet()
public
setSellerStreet(string|null $sellerStreet) : $this
Parameters
- $sellerStreet : string|null
Return values
$thissetSellerVatId()
public
setSellerVatId(string|null $sellerVatId) : $this
Parameters
- $sellerVatId : string|null
Return values
$thissetSellerVatInformations()
public
setSellerVatInformations(string|null $sellerVatInformations) : $this
Parameters
- $sellerVatInformations : string|null
Return values
$thissetShipper()
public
setShipper(TOrderShipper|null $shipper) : $this
Parameters
- $shipper : TOrderShipper|null
Return values
$thissetStatus()
public
setStatus(TStatus|null $status) : $this
Parameters
- $status : TStatus|null
Return values
$thissetStatusInformations()
public
setStatusInformations(string|null $statusInformations) : $this
Parameters
- $statusInformations : string|null
Return values
$thissetStockDocumentId()
public
setStockDocumentId(int|null $stockDocumentId) : $this
Parameters
- $stockDocumentId : int|null
Return values
$thissetStockState()
public
setStockState(string $stockState) : $this
Parameters
- $stockState : string
Return values
$thissetSummaryReportCode()
public
setSummaryReportCode(string|null $summaryReportCode) : static
Parameters
- $summaryReportCode : string|null
Return values
staticsetSwift()
public
setSwift(string|null $swift) : $this
Parameters
- $swift : string|null
Return values
$thissetTaxCountryCode()
public
setTaxCountryCode(string|null $taxCountryCode) : static
Parameters
- $taxCountryCode : string|null
Return values
staticsetTaxDate()
public
setTaxDate(DateTime|null $taxDate) : static
Parameters
- $taxDate : DateTime|null
Return values
staticsetTaxFlags()
public
setTaxFlags(array<int, string>|null $taxFlags) : static
Parameters
- $taxFlags : array<int, string>|null
Return values
staticsetTaxNote()
public
setTaxNote(string|null $taxNote) : static
Parameters
- $taxNote : string|null
Return values
staticsetTaxTreatment()
public
setTaxTreatment(string|null $taxTreatment) : static
Parameters
- $taxTreatment : string|null
Return values
staticsetTotalPrice()
public
setTotalPrice(string $totalPrice) : $this
Parameters
- $totalPrice : string
Return values
$thissetTotalPriceWithVat()
public
setTotalPriceWithVat(string $totalPriceWithVat) : $this
Parameters
- $totalPriceWithVat : string
Return values
$thissetUpdateDatetime()
public
setUpdateDatetime(DateTime|null $updateDatetime) : $this
Parameters
- $updateDatetime : DateTime|null
Return values
$thissetUpdateUserId()
public
setUpdateUserId(int|null $updateUserId) : $this
Parameters
- $updateUserId : int|null
Return values
$thissetUpdateUserIp()
public
setUpdateUserIp(string|null $updateUserIp) : $this
Parameters
- $updateUserIp : string|null
Return values
$thissetUseDeliveryAddress()
public
setUseDeliveryAddress(bool $useDeliveryAddress) : $this
Parameters
- $useDeliveryAddress : bool
Return values
$thissetUser()
public
setUser(TUser|null $user) : $this
Parameters
- $user : TUser|null
Return values
$thissetUserDiscountPercents()
public
setUserDiscountPercents(string $userDiscountPercents) : $this
Parameters
- $userDiscountPercents : string
Return values
$thissetUserIsUpdated()
public
setUserIsUpdated(bool $userIsUpdated) : $this
Parameters
- $userIsUpdated : bool
Return values
$thissetUserType()
public
setUserType(TUserType|null $userType) : $this
Parameters
- $userType : TUserType|null
Return values
$thissetVariableSymbol()
public
setVariableSymbol(string|null $variableSymbol) : $this
Parameters
- $variableSymbol : string|null
Return values
$thissetVouchers()
public
setVouchers(Collection<int, TOrderVoucher>|array<int, TOrderVoucher> $vouchers) : $this
Parameters
- $vouchers : Collection<int, TOrderVoucher>|array<int, TOrderVoucher>
Return values
$thissetWithVat()
public
setWithVat(bool $withVat) : $this
Parameters
- $withVat : bool
Return values
$thisgetTraitsRecursive()
Walks the trait list recursively and collects nested traits too.
private
static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
- $traits : array<string, string>