for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dgame\Soap\Component;
use Dgame\Soap\XmlElement;
use Exception;
/**
* Class Request
* @package Dgame\Soap\Component
*/
final class Request extends NamedNode
{
* Request constructor.
*
* @param BiPROVersion $version
public function __construct(BiPROVersion $version)
parent::__construct();
$this->appendElement($version);
}
* @param bool $confirm
public function setConfirm(bool $confirm)
$this->search('BestaetigeLieferungen')->setValue($confirm ? 'true' : 'false');
* @param int $id
public function setId(int $id)
$id
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->search('ID')->setValue(1);
public function setConsumerId(int $id)
$this->search('ConsumerID')->setValue(1);
* @param string $name
* @return XmlElement
private function search(string $name): XmlElement
foreach ($this->getElements() as $element) {
if ($element->getName() === $name) {
return $element;
$element = new XmlElement($name);
$this->appendElement($element);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.