\ServiceLogic

Class stores all service's logic.

Summary

Methods
Properties
Constants
__construct()
$SecurityProvider
$ParamsFetcher
$Model
No constants found
get_param()
result()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$ParamsFetcher

$ParamsFetcher : 

Request params fetcher.

Type

$Model

$Model : 

Model.

Type

Methods

__construct()

__construct(object  $ParamsFetcher, object  $SecurityProvider, mixed  $Model = null) 

Constructor.

Parameters

object $ParamsFetcher
  • Params fetcher.
object $SecurityProvider
  • Security provider.
mixed $Model
  • Service model.

get_param()

get_param(string  $Param, mixed  $Default = false) : mixed

Method returns request parameter.

Parameters

string $Param
  • parameter name.
mixed $Default
  • default value.

Returns

mixed —

Parameter value.

result()

result(mixed  $Value) : array

Method compiles result structure to be returned by endpoint.

Parameters

mixed $Value
  • Value to be returned.

Returns

array