Set
extends Part
in package
A Magic: The Gathering set — MTGJSON's Set model, without the card, token, deck, booster and sealed product lists (search cards by `setCode`, and open boosters with {@see \MTG\Repository\SetRepository::generateBooster()}).
Tags
Table of Contents
Properties
- $baseSetSize : int|null
- $block : string|null
- $code : string|null
- $isFoilOnly : bool|null
- $isForeignOnly : bool|null
- $isNonFoilOnly : bool|null
- $isOnlineOnly : bool|null
- $isPaperOnly : bool|null
- $isPartialPreview : bool|null
- $keyruneCode : string|null
- $languages : array<string|int, string>|null
- $mcmId : int|null
- $mcmIdExtras : int|null
- $mcmName : string|null
- $mtgoCode : string|null
- $name : string|null
- $parentCode : string|null
- $releaseDate : Carbon|null
- $tcgplayerGroupId : int|null
- $tokenSetCode : string|null
- $totalSetSize : int|null
- $translations : array<string|int, mixed>|null
- $type : string|null
- $fillable : mixed
Methods
- toContainer() : Container|null
- Converts the set to a container with components.
- getReleaseDateAttribute() : Carbon|null
- Gets the release date of the set.
Properties
$baseSetSize
public
int|null
$baseSetSize
The number of cards in the set, excluding promotional or special cards.
$block
public
string|null
$block
The block name the set was in.
$code
public
string|null
$code
The set code for the set.
$isFoilOnly
public
bool|null
$isFoilOnly
If the set is only available in foil.
$isForeignOnly
public
bool|null
$isForeignOnly
If the set is available only outside the United States of America.
$isNonFoilOnly
public
bool|null
$isNonFoilOnly
If the set is only available in non-foil.
$isOnlineOnly
public
bool|null
$isOnlineOnly
If the set is only available in online game variations.
$isPaperOnly
public
bool|null
$isPaperOnly
If the set is available only in paper.
$isPartialPreview
public
bool|null
$isPartialPreview
If the set is still in preview (spoiled). Preview sets do not have complete data.
$keyruneCode
public
string|null
$keyruneCode
The matching Keyrune code for set image icons.
$languages
public
array<string|int, string>|null
$languages
The languages the set was printed in.
$mcmId
public
int|null
$mcmId
The Magic Card Market set identifier.
$mcmIdExtras
public
int|null
$mcmIdExtras
The split Magic Card Market set identifier if a set is printed in two sets.
$mcmName
public
string|null
$mcmName
The Magic Card Market set name.
$mtgoCode
public
string|null
$mtgoCode
The set code for the set as it appears on Magic: The Gathering Online.
$name
public
string|null
$name
The name of the set.
$parentCode
public
string|null
$parentCode
The parent set code for set variations like promotions, guild kits, etc.
$releaseDate read-only
public
Carbon|null
$releaseDate
The release date of the set.
$tcgplayerGroupId
public
int|null
$tcgplayerGroupId
The group identifier of the set on TCGplayer.
$tokenSetCode
public
string|null
$tokenSetCode
The tokens set code, formatted in uppercase.
$totalSetSize
public
int|null
$totalSetSize
The total number of cards in the set, including promotional and related supplemental products.
$translations
public
array<string|int, mixed>|null
$translations
The translated set name by language.
$type
public
string|null
$type
The expansion type of the set (core, expansion, masters, commander, promo, …).
$fillable
protected
mixed
$fillable
= ['baseSetSize', 'block', 'code', 'isForeignOnly', 'isFoilOnly', 'isNonFoilOnly', 'isOnlineOnly', 'isPaperOnly', 'isPartialPreview', 'keyruneCode', 'languages', 'mcmId', 'mcmIdExtras', 'mcmName', 'mtgoCode', 'name', 'parentCode', 'releaseDate', 'tcgplayerGroupId', 'tokenSetCode', 'totalSetSize', 'translations', 'type']
Tags
Methods
toContainer()
Converts the set to a container with components.
public
toContainer() : Container|null
Tags
Return values
Container|nullgetReleaseDateAttribute()
Gets the release date of the set.
protected
getReleaseDateAttribute() : Carbon|null