Skip to content

Commit

Permalink
Merge pull request #9 from James300/improvement/Add-Metafields-to-Var…
Browse files Browse the repository at this point in the history
…iant

Add Metafields to Variant
  • Loading branch information
walrusk authored Sep 12, 2017
2 parents fb7099e + 9324228 commit 725a9ad
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Models/Variant.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use BoldApps\ShopifyToolkit\Contracts\Serializeable;

/**
* Class Variant
*/
class Variant implements Serializeable
{
/** @var string */
Expand Down Expand Up @@ -81,6 +84,9 @@ class Variant implements Serializeable
/** @var string */
protected $weightUnit;

/** @var array */
protected $metafields;

/**
* @return string
*/
Expand Down Expand Up @@ -480,4 +486,20 @@ public function setWeightUnit($weightUnit)
{
$this->weightUnit = $weightUnit;
}

/**
* @return array
*/
public function getMetafields()
{
return $this->metafields;
}

/**
* @param array $metafields
*/
public function setMetafields($metafields)
{
$this->metafields = $metafields;
}
}

0 comments on commit 725a9ad

Please sign in to comment.