Diglin\Ricardo\Managers\ParameterAbstract
Synopsis
class ParameterAbstract
implements
ArrayAccess
{
- // members
- private $_data;
- protected $_requiredProperties;
- protected $_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
Extended by
- Diglin\Ricardo\Managers\Sell\Parameter\AddArticlePicturesParameter
- Diglin\Ricardo\Managers\Sell\Parameter\AppendArticleDescriptionParameter
- Diglin\Ricardo\Managers\Sell\Parameter\AppendDescriptionParameter
- Diglin\Ricardo\Managers\Sell\Parameter\ArticleDeliveryParameter
- Diglin\Ricardo\Managers\Sell\Parameter\ArticleDescriptionParameter
- Diglin\Ricardo\Managers\Sell\Parameter\ArticleInformationParameter
- Diglin\Ricardo\Managers\Sell\Parameter\ArticleInternalReferenceParameter
- Diglin\Ricardo\Managers\Sell\Parameter\ArticlePictureParameter
- Diglin\Ricardo\Managers\Sell\Parameter\CloseArticleParameter
- Diglin\Ricardo\Managers\Sell\Parameter\CloseArticlesParameter
- Diglin\Ricardo\Managers\Sell\Parameter\DeletePlannedArticleParameter
- Diglin\Ricardo\Managers\Sell\Parameter\DeletePlannedArticlesParameter
- Diglin\Ricardo\Managers\Sell\Parameter\InsertArticleParameter
- Diglin\Ricardo\Managers\Sell\Parameter\InsertArticlesParameter
- Diglin\Ricardo\Managers\Sell\Parameter\UpdateArticleParameter
- Diglin\Ricardo\Managers\Sell\Parameter\UpdateArticlePicturesParameter
- Diglin\Ricardo\Managers\SellerAccount\Parameter\ArticlesParameter
- Diglin\Ricardo\Managers\SellerAccount\Parameter\ClosedArticlesParameter
- Diglin\Ricardo\Managers\SellerAccount\Parameter\OpenArticlesParameter
- Diglin\Ricardo\Managers\SellerAccount\Parameter\PlannedArticleParameter
- Diglin\Ricardo\Managers\SellerAccount\Parameter\PlannedArticlesParameter
- Diglin\Ricardo\Managers\SellerAccount\Parameter\SoldArticlesParameter
- Diglin\Ricardo\Managers\SellerAccount\Parameter\UnsoldArticlesParameter
Implements
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
51 - 91 | 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
-
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