55use TCGdex \Model \SubModel \CardCount ;
66use TCGdex \Model \SubModel \Variants ;
77use TCGdex \Model \SubModel \Legal ;
8+ use TCGdex \Model \SubModel \Abbreviation ;
89
910class Set extends SetResume
1011{
12+ /**
13+ * the serie the set is part of
14+ */
1115 public SerieResume $ serie ;
1216
17+ /**
18+ * the TCG Online ID
19+ */
1320 public ?string $ tcgOnline = null ;
1421
22+ /**
23+ * @deprecated this variable is inexistant in the API
24+ */
1525 public ?Variants $ variants = null ;
1626
27+ /**
28+ * the set release date as an ISO8601 string (ex: `2020-02-01`)
29+ */
1730 public string $ releaseDate = '' ;
1831
32+ /**
33+ * Designate if the set is usable in tournaments
34+ *
35+ * Note: this is specific to the set and if a
36+ * card is banned from the set it will still be true
37+ */
1938 public Legal $ legal ;
2039
2140 /**
41+ * the number of cards of the set in total & by variant
2242 * @var CardCount
2343 */
2444 public $ cardCount ;
2545
2646 /**
47+ * The official and localized abbreviation used by TPC
48+ */
49+ public Abbreviation $ abbreviation ;
50+
51+ /**
52+ * the list of cards of the set
2753 * @var CardResume[]
2854 */
2955 public array $ cards = [];
@@ -35,8 +61,8 @@ protected function fill(object $data): void
3561 $ this ->cardCount = Model::build (new CardCount ($ this ->sdk ), $ value );
3662 } elseif ($ key === 'serie ' ) {
3763 $ this ->serie = Model::build (new SerieResume ($ this ->sdk ), $ value );
38- } elseif ($ key === 'variants ' ) {
39- $ this ->variants = Model::build (new Variants ($ this ->sdk ), $ value );
64+ } elseif ($ key === 'abbreviation ' ) {
65+ $ this ->abbreviation = Model::build (new Abbreviation ($ this ->sdk ), $ value );
4066 } elseif ($ key === 'legal ' ) {
4167 $ this ->legal = Model::build (new Legal ($ this ->sdk ), $ value );
4268 } elseif ($ key === 'cards ' ) {
0 commit comments