for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Graze\WipotecCheckweigherClient\Request;
class RequestChangeArticle extends AbstractRequestArticle
{
/** @var bool */
private $resetCounter;
/**
* @return string
*/
protected function getId()
return 'change_article';
}
* @param bool $resetCounter
public function setResetCounter($resetCounter)
$this->resetCounter = $resetCounter;
* @return mixed[]
protected function getParams()
$params = parent::getParams();
if (!is_null($this->resetCounter)) {
is_null($this->resetCounter)
false
$params['article_definition']['reset_counter'] = (int)$this->resetCounter;
return $params;