trait HandlesStringable (View source)

internal  
 

Trait to consolidate the methods needs to implement the \Brandon14\FossabotCommander\Contracts\Stringable interface.

Traits

Trait to consolidate functionality of converting a class to JSON representation.

Methods

string
toJson($options = 0)

{@inheritDoc}

__toString()

Magic method https://www.php.net/manual/en/language.oop5.magic.php#object. toString allows a class to decide how it will react when it is treated like a string.

string
toString()

{@inheritDoc}

Details

string toJson($options = 0)

{@inheritDoc}

Parameters

$options

Return Value

string

__toString()

Magic method https://www.php.net/manual/en/language.oop5.magic.php#object. toString allows a class to decide how it will react when it is treated like a string.

string toString()

{@inheritDoc}

Return Value

string