ZEROSPAM\Framework\SDK\Test\Base\Request\NullableTestRequest
Synopsis
class NullableTestRequest
extends TestRequest
implements
WithNullableFields
{
- // members
- private null|string $nullField;
- // methods
- public $this setNullField()
- public RequestType httpType()
- // Inherited methods from TestRequest
- public string routeUrl()
- public RequestType httpType()
- public IResponse processResponse()
- // Inherited methods from BaseRequest
- public $this addArgument()
- public $this removeArgument()
- public array getArguments()
- public array toArray()
- protected array blacklistedProperties()
- public UriInterface toUri()
- public final RequestType requestType()
- public array requestOptions()
- public IResponse getResponse()
- public void setResponse()
- public int tries()
- public int incrementTries()
- public array getMergeableArguments()
- // Inherited methods from HasNullableFields
- public bool isNullable()
- public bool isValueChanged()
- protected void nullableChanged()
Hierarchy
Extends
Uses
Implements
Members
private
- $nullField — ZEROSPAM\Framework\SDK\Test\Base\Request\null|string
Methods
public
- httpType() — Type of request.
- setNullField()
Inherited from ZEROSPAM\Framework\SDK\Test\Base\Data\Request\TestRequest
public
- httpType() — Type of request.
- processResponse() — Process the data that is in the response.
- routeUrl() — The url of the route.
Inherited from ZEROSPAM\Framework\SDK\Request\Api\BaseRequest
protected
- blacklistedProperties() — List of properties to not serialize.
public
- addArgument() — Add a request argument.
- getArguments() — Get all the request arguments.
- getMergeableArguments()
- getResponse() — Getter for response.
- incrementTries() — Increment the number of tries and returns it.
- removeArgument() — Remove a request argument.
- requestOptions() — Options for this request to be used by the client.
- requestType() — Request type to use for the request.
- setResponse()
- toArray() — Get the data used for the route.
- toUri() — Return the URI of the request.
- tries() — Number of tries of the request.
Inherited from ZEROSPAM\Framework\SDK\Request\Api\HasNullableFields
protected
- nullableChanged() — Trigger the fact the nullable changed
public
- isNullable() — Is the given field nullable
- isValueChanged() — Check if the given field is nullable and if it should be included in the request
History
-
2018-11-07T16:53:28+00:00 (commit #80a6915)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
fix(EmptyRequest): Don't have a body for GET requests Don't serialize STATIC properties of requests.
-
2018-09-26T16:14:50+00:00 (commit #4a46e0a)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
refactor(Test): Refactor the Test Response/Test Request own namespace
-
2018-07-16T14:26:38+00:00 (commit #290a97d)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
feat(Response): Split Ratelimited from BaseResponse New type of response can now be easily build.