UserDocument extends Element
in package
Uses IdentifiableElementTrait, IntegrableElementTrait

This is the user base document main class.

The user base document information will be stored in that class and will remain immutable (only get methods are available)

Tags
see
UserDocument::getDocumentNumber()
see
UserDocument::getDate()
see
UserDocument::getStatus()
see
UserDocument::getSubstatus()
see
Element
see
IdentifiableElementTrait
see
IntegrableElementTrait
see
EnumResolverTrait

Table of Contents

$date  : Date|null
$documentNumber  : string
$error  : Error|null
$id Autonumeric element id.  : int
$pId Public and readable element id.  : string
getDate() Returns the order date.  : Date|null
getDocumentNumber() Returns the order document number.  : string
getError() Returns the current element error (if there is error).  : Error|null
getId() Returns the element id.  : int
getPId() Returns the element public id (pId).  : string
setDate()  : void
setError()  : void

Properties

$id

Autonumeric element id.

protected int $id = 0

All the given elements by the LogiCommerce API will send it.

$pId

Public and readable element id.

protected string $pId = ''

Setted by the user on LogiCommerce. All the integrable elements by the LogiCommerce API will send it. Useful for integrations and other 3rd party softwares that need to connect to LogiCommerce software.

Methods

getDocumentNumber()

Returns the order document number.

public getDocumentNumber() : string
Return values
string

getError()

Returns the current element error (if there is error).

public getError() : Error|null
Return values
Error|null

setDate()

protected setDate(string $date) : void
Parameters
$date : string
Return values
void

setError()

protected setError(mixed $error) : void
Parameters
$error : mixed
Return values
void

Search results