Download the PHP package kharanenka/php-result-store without Composer
On this page you can find all versions of the php package kharanenka/php-result-store. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kharanenka/php-result-store
More information about kharanenka/php-result-store
Files in kharanenka/php-result-store
Download kharanenka/php-result-store
More information about kharanenka/php-result-store
Files in kharanenka/php-result-store
Please rate this library. Is it a good library?
Informations about the package php-result-store
Class Result
Universal result store:
- status (bool)
- data (mixed)
- message (string)
- code (string)
Installation
Require this package in your composer.json
and update composer.
Usage
You can use class "Result" in any places your application. Class "Result" is singleton.
Set result data methods:
- setData(mixed $obData) - Set result data
- setTrue(mixed $obData = null) - Set result data with status "true"
- setFalse(mixed $obData = null) - Set result data with status "false"
- setMessage(string $sMessage) - Set message string
- setCode(string $sCode) - Set code value
Get result data method:
- status() - Get result status flag true/false
- data() - Get data value (object/array/string)
- message() - Get message value
- code() - Get code value
- get() - Get array result array
- getJSON() - Get array result array in JSON string
All versions of php-result-store with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package kharanenka/php-result-store contains the following files
Loading the files please wait ....