PATH:
home
/
thebhoeo
/
.trash
/
wpforms-lite-pro
/
vendor_prefixed
/
apimatic
/
core
/
src
/
Request
/
Parameters
<?php declare (strict_types=1); namespace WPForms\Vendor\Core\Request\Parameters; use WPForms\Vendor\CoreInterfaces\Core\Request\RequestSetterInterface; class BodyParam extends Parameter { /** * Initializes a body parameter with the value specified. */ public static function init($value) : self { return new self('', $value); } /** * Initializes a body parameter with the value and key provided. * * @param string $key * @param mixed $value */ public static function initWrapped(string $key, $value) : self { return new self($key, $value); } private function __construct(string $key, $value) { parent::__construct($key, $value, 'body'); } /** * Adds the parameter to the request provided. * * @param RequestSetterInterface $request The request to add the parameter to. */ public function apply(RequestSetterInterface $request) : void { if ($this->validated) { $request->addBodyParam($this->value, $this->key); } } }
[-] AdditionalHeaderParams.php
[edit]
[-] FormParam.php
[edit]
[-] BodyParam.php
[edit]
[-] QueryParam.php
[edit]
[-] AdditionalFormParams.php
[edit]
[-] Parameter.php
[edit]
[-] AdditionalQueryParams.php
[edit]
[-] EncodedParam.php
[edit]
[-] MultipleParams.php
[edit]
[+]
..
[-] TemplateParam.php
[edit]
[-] HeaderParam.php
[edit]