abstract class Model (View source)

Class Model

Properties

protected string $field Set GraphQL mutation field name

Methods

__construct(array $attributes)

Media constructor

fill(array $attributes)

Fill all attributes to model

string
toQuery()

Make a query string

mixed
toArray()

Get the instance as an array.

Details

__construct(array $attributes)

Media constructor

Parameters

array $attributes

fill(array $attributes)

Fill all attributes to model

Parameters

array $attributes

string toQuery()

Make a query string

Return Value

string

abstract mixed toArray()

Get the instance as an array.

Return Value

mixed