From fb844786f126afce6f3fb68a9f97ae6efc2e66dd Mon Sep 17 00:00:00 2001 From: gridnev Date: Fri, 6 Nov 2020 11:35:47 +0300 Subject: [PATCH] add workTime to Store model --- Model/Store.php | 9 +++++ Model/StoreWorkTime.php | 71 +++++++++++++++++++++++++++++++++++++ Model/StoreWorkTimeItem.php | 44 +++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 Model/StoreWorkTime.php create mode 100644 Model/StoreWorkTimeItem.php diff --git a/Model/Store.php b/Model/Store.php index 87c2e96..62441db 100644 --- a/Model/Store.php +++ b/Model/Store.php @@ -23,4 +23,13 @@ class Store * @Serializer\Type("string") */ public $name; + + /** + * @var StoreWorkTime + * + * @Serializer\Groups({"request"}) + * @Serializer\SerializedName("workTime") + * @Serializer\Type("RetailCrm\DeliveryModuleBundle\Model\StoreWorkTime") + */ + public $workTime; } diff --git a/Model/StoreWorkTime.php b/Model/StoreWorkTime.php new file mode 100644 index 0000000..b262967 --- /dev/null +++ b/Model/StoreWorkTime.php @@ -0,0 +1,71 @@ + + * + * @Serializer\Groups({"request"}) + * @Serializer\SerializedName("mo") + * @Serializer\Type("array") + */ + public $monday; + + /** + * @var array + * + * @Serializer\Groups({"request"}) + * @Serializer\SerializedName("tu") + * @Serializer\Type("array") + */ + public $tuesday; + + /** + * @var array + * + * @Serializer\Groups({"request"}) + * @Serializer\SerializedName("we") + * @Serializer\Type("array") + */ + public $wednesday; + + /** + * @var array + * + * @Serializer\Groups({"request"}) + * @Serializer\SerializedName("th") + * @Serializer\Type("array") + */ + public $thursday; + + /** + * @var array + * + * @Serializer\Groups({"request"}) + * @Serializer\SerializedName("fr") + * @Serializer\Type("array") + */ + public $friday; + + /** + * @var array + * + * @Serializer\Groups({"request"}) + * @Serializer\SerializedName("sa") + * @Serializer\Type("array") + */ + public $saturday; + + /** + * @var array + * + * @Serializer\Groups({"request"}) + * @Serializer\SerializedName("su") + * @Serializer\Type("array") + */ + public $sunday; +} \ No newline at end of file diff --git a/Model/StoreWorkTimeItem.php b/Model/StoreWorkTimeItem.php new file mode 100644 index 0000000..80ebac8 --- /dev/null +++ b/Model/StoreWorkTimeItem.php @@ -0,0 +1,44 @@ +