\TxTextControl\ReportingCloud\FilterFilterBooleanToStringTrait

Trait FilterBooleanToStringTrait

Summary

Methods
Properties
Constants
filterBooleanToString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

filterBooleanToString()

filterBooleanToString(bool  $param) : string

Convert bool true and false to string 'true' and 'false'.

This is necessary to prevent Guzzle from converting the query parameter to ?param=0 or ?param=1, which the backend does not recognize.

The backend only recognizes query parameter ?param=true and ?param=false.

Parameters

bool $param

Returns

string —