Discussion
extends Model
in package
Table of Contents
- $attributes : array<string|int, mixed>
- $dispatcher : Client
- $id : int|null
- __construct() : mixed
- __get() : array<string|int, mixed>|ArrayAccess|mixed
- __set() : mixed
- addRelation() : void
- attributes() : array<string|int, mixed>
- baseRequest() : Fluent
- delete() : mixed
- fromResource() : mixed
- getDispatcher() : Client
- item() : Item
- Generated resource item.
- save() : mixed
- Creates or updates a resource.
- setDispatcher() : void
- type() : string
- Resource type.
Properties
$attributes
protected
array<string|int, mixed>
$attributes
= []
$dispatcher
protected
static Client
$dispatcher
$id
protected
int|null
$id
Methods
__construct()
public
__construct([array<string|int, mixed> $attributes = [] ]) : mixed
Parameters
- $attributes : array<string|int, mixed> = []
Return values
mixed —__get()
public
__get( $name) : array<string|int, mixed>|ArrayAccess|mixed
Parameters
Return values
array<string|int, mixed>|ArrayAccess|mixed —__set()
public
__set( $name, $value) : mixed
Parameters
Return values
mixed —addRelation()
public
addRelation(Model $relation) : void
Parameters
- $relation : Model
Return values
void —attributes()
public
attributes() : array<string|int, mixed>
Return values
array<string|int, mixed> —baseRequest()
public
baseRequest() : Fluent
Return values
Fluent —delete()
public
delete() : mixed
Return values
mixed —fromResource()
public
static fromResource(Item $item) : mixed
Parameters
- $item : Item
Return values
mixed —getDispatcher()
public
static getDispatcher() : Client
Return values
Client —item()
Generated resource item.
public
item() : Item
Return values
Item —save()
Creates or updates a resource.
public
save() : mixed
Return values
mixed —setDispatcher()
public
static setDispatcher(Client $dispatcher) : void
Parameters
- $dispatcher : Client
Return values
void —type()
Resource type.
public
type() : string