Gate model
A gate represents an entity which is responsible for invalidating access codes. It can only invalidate those access codes whose category id matches one of the gate's category ids.
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
getAccessFrom() : \NextEvent\PHPSDK\Model\DateTime|null
getAccessTo() : \NextEvent\PHPSDK\Model\DateTime|null
getCategories() : array
array
getChangedDate() : \NextEvent\PHPSDK\Model\DateTime|null
getCreatedDate() : \NextEvent\PHPSDK\Model\DateTime|null
getDeactivated() : \NextEvent\PHPSDK\Model\DateTime|null
getHash() : string
string
getId() : integer
integer
getMode() : integer
see |
\NextEvent\PHPSDK\Model\Gate::MODE_IN
For the in mode \NextEvent\PHPSDK\Model\Gate::MODE_OUTFor the out mode \NextEvent\PHPSDK\Model\Gate::MODE_BOTHFor both modes |
---|---|
integer
getName() : string
string
getReplacedBy() : \NextEvent\PHPSDK\Model\Gate
getReplacedGate() : \NextEvent\PHPSDK\Model\Gate
isTransferAllowed() : boolean
boolean
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
MODE_IN
MODE_OUT
MODE_BOTH