Skip to content

Commit

Permalink
Add availability date to Item Class
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rogers committed Aug 16, 2017
1 parent 9a8b0ca commit cc781ad
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 cc781ad

Please sign in to comment.