Diglin\Ricardo\Service
Class Service
Synopsis
- // members
- protected $_services;
- protected ApiInterface $_api;
- protected Security $_securityManager;
- // methods
- public void __construct()
- public ApiInterface getApi()
- public Config getConfig()
- public array getServices()
- public $this add()
- public bool get()
- public $this update()
- public $this remove()
- public Security getSecurityManager()
- public $this setSecurityManager()
- public mixed proceed()
- protected mixed _getCleanServiceClassName()
- protected mixed|string _getServiceName()
- protected string _prepareServiceGetMethod()
- protected string _prepareServiceGetResultMethod()
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
181 - 247 | CyclomaticComplexity | The method proceed() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10. |
181 - 247 | NPathComplexity | The method proceed() has an NPath complexity of 301. The configured NPath complexity threshold is 200. |
Members
protected
- $_api — Diglin\Ricardo\Core\ApiInterface
- $_securityManager — Diglin\Ricardo\Managers\Security
- $_services — array
Methods
protected
- _getCleanServiceClassName() — Try to prevent some errors with the service name So replace all underscore or space in a service name
- _getServiceName() — Retrieve the correct service class name
- _prepareServiceGetMethod() — Add 'get' to the method name
- _prepareServiceGetResultMethod() — Add 'get' to the method name and 'Result' at the end of the name
public
- __construct()
- add() — Add a service to the service manager
- get() — Get the instance of a specific service or get an array of available services
- getApi() — Get the API class
- getConfig()
- getSecurityManager()
- getServices() — Get all services
- proceed() — Execute a method on the service and return an array
- remove() — Remove a service from the service manager to free some memory
- setSecurityManager()
- update() — Update the service into the service manager in case of properties changes for example
History
-
2014-11-29T21:35:16+01:00 (commit #b245fb0)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Remove PictureBytes when debug data is returned. Prevent problems
-
2014-10-20T13:39:26+02:00 (commit #177d730)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
update
-
2014-09-28T11:29:08+02:00 (commit #d7d665e)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Verbose exception in case of error from the ricardo API
-
2014-09-28T11:22:59+02:00 (commit #3e11a2c)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Update the License to OSL v3.0, add license file, change code header and composer.json
-
2014-09-14T22:13:45+02:00 (commit #cda6bb1)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
API changes and test
-
2014-09-07T17:07:03+02:00 (commit #00bd231)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Insert Article Implementation and test
-
2014-08-10T20:29:51+02:00 (commit #b1da29a)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Implement a logic to detect what kind of security errors happens
-
2014-08-10T20:18:28+02:00 (commit #fc0e52a)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Standardize namespace use
-
2014-08-02T19:31:08+02:00 (commit #550d2e1)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Implement error management with an automatic detection of exception class
-
2014-08-01T16:00:09+02:00 (commit #3df2f7d)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Change the simulation authorization process implementation and update unit test
-
2014-07-31T09:47:35+02:00 (commit #0ed14cb)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC_38] Add tests
-
2014-07-30T22:51:54+02:00 (commit #bf0e20f)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Some small refactoring/improvements and cleanup
-
2014-07-30T08:40:28+02:00 (commit #af46dab)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Test Exceptions
-
2014-07-11T02:01:39+02:00 (commit #6a5232f)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Move the Service class to a different folder to prevent misunderstanding with the classes in the manager folder
-
2014-07-07T18:27:40+02:00 (commit #3b6fa9d)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-2] [FEATURE] finish to implement the System Service for the PHP library.
-
2014-07-01T13:49:07+02:00 (commit #37b2bde)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Add test for Helper, add to the helper a method to convert in both directions date from/to json/php, add the Ricardo Service System and its test (still in progress), improve information of error curl message, add method into the testAbstract to get the latest api debug
-
2014-06-22T17:08:27+02:00 (commit #61fc8b6)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Add PhpUnit Tests for Security, SellerAccount (in progress) and System (in progress) Services. Add a way to configure the unit test, documentation exist to configure it thanks to a readme file Implement the security protocol at the manager level
-
2014-06-15T22:30:44+02:00 (commit #6b76b24)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
change folders structure, add script specific for Magento to allow to install the library into it
-
2014-06-15T13:58:22+02:00 (commit #e3161ff)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
init commit