Skip to content

Commit

Permalink
Merge pull request #22 from midnite81/master
Browse files Browse the repository at this point in the history
Add availability date to Item Class
  • Loading branch information
lukesnowden authored Aug 17, 2017
2 parents 9a8b0ca + cc781ad commit 45c5cb0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/LukeSnowden/GoogleShoppingFeed/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,17 @@ public function availability($availability)
$this->nodes['availability'] = $node->value($availability)->_namespace($this->namespace);
}

/**
* [availability_date description]
*
* @param [type] $availability [description]
*/
public function availability_date($availabilityDate)
{
$node = new Node('availability_date');
$this->nodes['availability_date'] = $node->value($availabilityDate)->_namespace($this->namespace)->addCdata();
}

/**
* [shipping description]
* @param [type] $code [description]
Expand Down

0 comments on commit 45c5cb0

Please sign in to comment.