Class ResultStatus1
Class ResultStatus1 ResultStatus1 could be use as Result for method [just to return text, number and boolean], could be true by itself of false and any of its method could be accessible as well $result = ResultStatus1::make(true, 'data loading...', ['some data']);
if($result) echo 'Working...';
else echo $result->message();
Because it does not work well with Object returning, Therefore, do Not Use with Api, Use ResultObject1 Instead
-
SimpleXMLElement
implements
Traversable
-
ResultStatus1
Methods summary
public static
ResultStatus1
|
#
make( boolean $status = true, string $message = "", null $data = null, array $tag = [] )
Parameters
- $status
- $message
- $data
- $tag
Returns
|
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
|
public static
|
|
public static
|
|
Methods inherited from SimpleXMLElement
__construct(),
__toString(),
addAttribute(),
addChild(),
asXML(),
attributes(),
children(),
count(),
getDocNamespaces(),
getName(),
getNamespaces(),
registerXPathNamespace(),
saveXML(),
xpath()
|