Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* introduce new functions to retrieve formerly set parameters and remove parameters from invoke() * introduce possibility to descript the remote function API * add constants and move value interface to common element interface * new API element hierarchy: value-element-array * Rename Interfaces and add comments for better understanding * Add exception for missing table elements * rename table element missing exception to array * add API interface and make API JSON serializeable Use API interface as return value and parameter for the API methods of the function interface. Make element interface JSON serializable and thus all children too. * add methods for adding API elements, values and arrays. * move IArray specific constants from IElement and IValue * combine all add() methods of the api interface * add json decode static functions * add json configuration keys * update comments of API specific methods. * add data types hex-bin and DateTime * split DateTime data type into date and time. * split hexbin to hex2bin and bin2hex for input and output directions The type would depend on the master type being either an input- or output- value. Tables are considered output values. * add virtual timestamp and week data types * update comments * rename const hex2bin to hexbin * fix typo * refactor configuration interfaces * Add JSON_* variables to be used for JSON encoded configurations. * Move methods handling the configuration to a separate interface. * Move configuration interfaces to a subdirectory. * Remove const TYPE from interfaces (the class names should do fine). * Remove incomplete configuration exception from configuration interfaces. This validation is expected to be job of the actual implementation. * Introduce jsonDecode() method as pendant to \JsonSerializeable interface. * refactor connection interface * Make connection JSON serializeable. * Add methods to retrieve the configuration class. * Remove getId() method. * Remove connect() isConnected() and close() methods because this should be handled by the actual implementation internally. * Remove ping() methods, because this is essentially a function call. * add JSON serialization of functions * add missing exceptions, reduce jsonDecode to string, update comments * unify comments * fix error in comment * overwrite cast() method for arrays * remove IConfiguration::getValidConfigKeys() * add JsonSerializable interface * Make all classes children of IJsonSerializable * make IFunction \JsonSerializable IJsonSerializable doesn't work because jsonDecode() requires a connection configuration as mandatory parameter to correctly decode a function. * remove addMember() from Api\IArray * remove connection class and adapt function class for configuration * rename retrieveApi() to extractApi() * fix line length * rename reset() to resetParams() and add missing exceptions * update comments * remove typecasting from IApi * Change default return of get*() in config class to null except for mandatory fields. * change order of methods and constants to reflect mandatory and optional properties * unify PHPdoc of methods * unify PHPdoc of methods * remove setParam() method and add the missing exceptions * fix typos and comments * fix typos and comments * fix typos and comments * update readme to v2 * set PHP versions
- Loading branch information