Diglin\Ricardo\Managers\ParameterAbstract
Class ParameterAbstract
Synopsis
- // members
- private $_data;
- protected array $_requiredProperties = ;
- protected array $_optionalProperties = ;
- // methods
- public array getRequiredProperties()
- public array getOptionalProperties()
- public array getDataProperties()
- protected string _normalizeProperty()
- protected string _getGetterMethod()
- protected string _getSetterMethod()
- public void offsetSet()
- public boolean offsetExists()
- public void offsetUnset()
- public mixed offsetGet()
Hierarchy
Implements
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
65 - 105 | CyclomaticComplexity | The method getDataProperties() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. |
Members
private
- $_data — array
protected
- $_optionalProperties — array
- $_requiredProperties — array
Methods
protected
- _getGetterMethod() — Get the getter method name
- _getSetterMethod() — Get the setter method name
- _normalizeProperty() — Normalize the property from "_myProperty" to "MyProperty"
public
- getDataProperties() — Get all properties of a class as an array to be send or use properly by the ricardo.ch API
- getOptionalProperties()
- getRequiredProperties()
- offsetExists() — Implementation of ArrayAccess::offsetExists()
- offsetGet() — Implementation of ArrayAccess::offsetGet()
- offsetSet() — Implementation of ArrayAccess::offsetSet()
- offsetUnset() — Implementation of ArrayAccess::offsetUnset()
History
-
2015-02-05T13:02:27+01:00 (commit #17cc8fe)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Change license from OSL v3 to GPL v3
-
2014-12-16T12:45:07+01:00 (commit #ec26574)
Author: Sylvain Rayé (sylvain.raye@rissip.com) / Commiter: Sylvain Rayé (sylvain.raye@rissip.com)
PSR2 compliant
-
2014-12-03T20:43:38+01:00 (commit #bc8529c)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Fix issue with empty or 0 optional properties (an optional property can have the value 0 and must be sent)
-
2014-09-28T11:28:34+02:00 (commit #24aca8b)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Prevent to get optional properties of a parameter class is the property is empty
-
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-04T17:17:23+02:00 (commit #bed18ee)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Start the implementation of SellService, add parameter abstract and their classes to facilitate data manipulation of parameters between the lib and ricardo API