for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author @jayS-de <[email protected]>
*/
namespace Commercetools\Core\Request\Me;
use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Request\AbstractDeleteRequest;
use Commercetools\Core\Model\Customer\Customer;
use Commercetools\Core\Response\ApiResponseInterface;
* @package Commercetools\Core\Request\Me
* @link https://dev.commercetools.com/http-api-projects-me-profile.html#delete-customer
* @method Customer mapResponse(ApiResponseInterface $response)
class MeDeleteRequest extends AbstractDeleteRequest
{
protected $resultClass = '\Commercetools\Core\Model\Customer\Customer';
* @param int $version
* @param Context $context
public function __construct($version, Context $context = null)
parent::__construct(MeEndpoint::endpoint(), null, $version, $context);
}
* @param string $id
$id
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @return static
public static function ofVersion($version, Context $context = null)
return new static($version, $context);
* @return string
* @internal
protected function getPath()
return (string)$this->getEndpoint() . $this->getParamString();
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.