Файл: monst/Xsolla/Guzzle/Service/Command/LocationVisitor/Request/PostFieldVisitor.php
Строк: 16
<?php
namespace GuzzleServiceCommandLocationVisitorRequest;
use GuzzleHttpMessageRequestInterface;
use GuzzleServiceCommandCommandInterface;
use GuzzleServiceDescriptionParameter;
/**
* Visitor used to apply a parameter to a POST field
*/
class PostFieldVisitor extends AbstractRequestVisitor
{
public function visit(CommandInterface $command, RequestInterface $request, Parameter $param, $value)
{
$request->setPostField($param->getWireName(), $this->prepareValue($value, $param));
}
}