HookReciever
extends Changes
in package
Obtain & process AbraFlexi webhook call.
Tags
Table of Contents
Properties
- $changes : mixed
- $format : string
- $globalVersion : mixed
- $lastProcessedVersion : int
- Posledni zpracovana verze.
Methods
- __construct() : mixed
- Prijmac WebHooku.
- getLastProcessedVersion() : int
- Nacte posledni zpracovanou verzi.
- listen() : string
- Poslouchá standartní vstup.
- processChanges() : void
- Zpracuje změny.
- saveLastProcessedVersion() : void
- Ulozi posledni zpracovanou verzi.
- takeChanges() : int
- Převezme změny.
Properties
$changes
public
mixed
$changes
$format
public
string
$format
= 'json'
$globalVersion
public
mixed
$globalVersion
$lastProcessedVersion
Posledni zpracovana verze.
public
int
$lastProcessedVersion
= 0
Methods
__construct()
Prijmac WebHooku.
public
__construct([null|mixed $id = null ][, mixed $options = [] ]) : mixed
Parameters
- $id : null|mixed = null
- $options : mixed = []
getLastProcessedVersion()
Nacte posledni zpracovanou verzi.
public
getLastProcessedVersion() : int
Return values
int —$version
listen()
Poslouchá standartní vstup.
public
listen() : string
Return values
string —zaslaná data
processChanges()
Zpracuje změny.
public
processChanges() : void
saveLastProcessedVersion()
Ulozi posledni zpracovanou verzi.
public
saveLastProcessedVersion(int $version) : void
Parameters
- $version : int
takeChanges()
Převezme změny.
public
takeChanges(array<string|int, mixed> $changes) : int
Parameters
- $changes : array<string|int, mixed>
-
pole změn
Tags
Return values
int —Globální verze poslední změny