PHP Trait Isswp101\Persimmon\Traits\Presentable

Afficher le fichier Open project: isswp101/elasticsearch-eloquent

Méthodes publiques

Méthode Description
__toString ( ) : string Get the instance as a string.
toArray ( ) : array Get the instance as an array.
toCollection ( ) : Collection Get the instance as a collection.
toJson ( integer $options ) : string Get the instance as json.

Method Details

__toString() public méthode

Get the instance as a string.
public __toString ( ) : string
Résultat string

toArray() public méthode

Get the instance as an array.
public toArray ( ) : array
Résultat array

toCollection() public méthode

Get the instance as a collection.
public toCollection ( ) : Collection
Résultat Illuminate\Support\Collection

toJson() public méthode

Get the instance as json.
public toJson ( integer $options ) : string
$options integer
Résultat string