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\Customers\Command;
use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Request\AbstractAction;
* @package Commercetools\Core\Request\Customers\Command
* @link http://dev.commercetools.com/http-api-projects-customers.html#set-middle-name
* @method string getAction()
* @method CustomerSetMiddleNameAction setAction(string $action = null)
* @method string getMiddleName()
* @method CustomerSetMiddleNameAction setMiddleName(string $middleName = null)
class CustomerSetMiddleNameAction extends AbstractAction
{
public function fieldDefinitions()
return [
'action' => [static::TYPE => 'string'],
'middleName' => [static::TYPE => 'string'],
];
}
* @param array $data
* @param Context|callable $context
public function __construct(array $data = [], $context = null)
parent::__construct($data, $context);
$this->setAction('setMiddleName');