ServiceBase
in package
Base service class
It bounds together transport, request parameters fetcher, logic, authorization and model
Tags
Table of Contents
- $serviceTransport : TransportInterface
- Service's ransport
- __construct() : mixed
- Constructor
- getTransport() : TransportInterface
- Method returns transport
- run() : void
- Running $this->serviceTransport run loop
- setTransport() : void
- Method sets transport
- initCustomRoutes() : void
- Method inits custom routes if necessary
- fetchActions() : void
- Method fetches actions if they are existing
Properties
$serviceTransport
Service's ransport
private
TransportInterface
$serviceTransport
Methods
__construct()
Constructor
public
__construct(TransportInterface $serviceTransport) : mixed
Parameters
- $serviceTransport : TransportInterface
-
service's transport
Return values
mixed —getTransport()
Method returns transport
public
getTransport() : TransportInterface
Return values
TransportInterface —transport
run()
Running $this->serviceTransport run loop
public
run() : void
Return values
void —setTransport()
Method sets transport
public
setTransport(Transport $transport) : void
Parameters
- $transport : Transport
Return values
void —initCustomRoutes()
Method inits custom routes if necessary
protected
initCustomRoutes() : void
Return values
void —fetchActions()
Method fetches actions if they are existing
private
fetchActions() : void