DiscordPHP-MTG Documentation

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
link

Set object reference

Generating a booster pack from a set

since
0.5.0

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
inheritDoc

Methods

getReleaseDateAttribute()

Gets the release date of the set.

public getReleaseDateAttribute() : ?Carbon|null
Tags
since
0.5.0
Return values
?Carbon|null

toContainer()

Converts the set to a container with components.

public toContainer() : Container|null
Tags
since
0.5.0
Return values
Container|null
On this page

Search results