ScanLog model
A scan log holds entry information of an access code. Those information contain process time, gate which scanned the code and which device has done it. Furthermore it holds connection state information and the validation message. This model can be used to analyze the entrance checks.
package |
NextEvent\PHPSDK\Model |
---|
__call(string $name, array $args) : mixed
If the source of your model contains, e.g. a property named 'my_property',
you can call getMyProperty()
to retrieve it's value.
string
array
mixed
__construct(array $source)
Parse source data.
Throws |
|
---|
array
The source data as received from the API
get(string $var) : mixed
Should be used, if you expect the model to have custom properties which are not known/covered by the known getters
string
mixed
getCategoryId() : integer
integer
getCode() : string
string
getConnection() : integer
see |
\NextEvent\PHPSDK\Model\ScanLog::CONNECTION_ONLINE
For the online connection \NextEvent\PHPSDK\Model\ScanLog::CONNECTION_OFFLINEFor the offline connection |
---|---|
integer
getCreatedDate() : \NextEvent\PHPSDK\Model\DateTime|null
getDeviceId() : integer
integer
getEntryState() : integer
see |
\NextEvent\PHPSDK\Model\AccessCode::ENTRY_IN
For the in state \NextEvent\PHPSDK\Model\AccessCode::ENTRY_OUTFor the out state |
---|---|
integer
getGateId() : integer
integer
getId() : integer
integer
getPriceId() : integer|null
integer|null
getProcessed() : \NextEvent\PHPSDK\Model\DateTime
getValidation() : string
string
isValid() : boolean
boolean
serialize() : string
Implements Serializable interface
string
toArray() : array
array
toLogContext() : array
Implements the LogContextInterface interface
array
toString() : string
string
unserialize( $serialized)
Implements Serializable interface
CONNECTION_ONLINE
var |
---|
CONNECTION_OFFLINE
var |
---|