Fenos\Notifynder\Notifications\ExtraParams::__toString PHP Method

__toString() public method

The __toString method allows a class to decide how it will react when it is converted to a string.
public __toString ( ) : string
return string
    public function __toString()
    {
        $extraParams = $this->extraParams;
        if (is_array($extraParams) || $extraParams instanceof stdClass) {
            return $this->toJson();
        }
        return $extraParams;
    }