From cc781ad11056deb6934067dec69d72b6b2312d09 Mon Sep 17 00:00:00 2001 From: Simon Rogers Date: Wed, 16 Aug 2017 14:57:37 +0100 Subject: [PATCH] Add availability date to Item Class --- src/LukeSnowden/GoogleShoppingFeed/Item.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/LukeSnowden/GoogleShoppingFeed/Item.php b/src/LukeSnowden/GoogleShoppingFeed/Item.php index 05fd35a..af40fc2 100644 --- a/src/LukeSnowden/GoogleShoppingFeed/Item.php +++ b/src/LukeSnowden/GoogleShoppingFeed/Item.php @@ -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]