Set
extends Part
in package
Represents a Magic: The Gathering set (one object from the API's `sets` response) — its code, name, release date, block and booster configuration.
Tags
Table of Contents
Properties
- $fillable : mixed
Methods
- getReleaseDateAttribute() : ?Carbon|null
- Gets the release date of the set.
- toContainer() : Container|null
- Converts the set to a container with components.
Properties
$fillable
protected
mixed
$fillable
= [
'name',
'block',
// The fields below are also part of the response (if not null), but cannot currently be used as query parameters
'code',
'gathererCode',
'oldCode',
'magicCardsInfoCode',
'releaseDate',
'border',
'expansion',
'onlineOnly',
'booster',
]
Tags
Methods
getReleaseDateAttribute()
Gets the release date of the set.
public
getReleaseDateAttribute() : ?Carbon|null
Tags
Return values
?Carbon|nulltoContainer()
Converts the set to a container with components.
public
toContainer() : Container|null