From e94fda0c4273fc8c3763e3dba0920dd1608fd570 Mon Sep 17 00:00:00 2001 From: Emmanuel Date: Mon, 20 Dec 2021 17:15:54 +0100 Subject: [PATCH] Feat: Tiktok --- src/Document/Components/Tiktok.php | 50 ++++++++++++++++++++++++ tests/Document/Components/TiktokTest.php | 28 +++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 src/Document/Components/Tiktok.php create mode 100644 tests/Document/Components/TiktokTest.php diff --git a/src/Document/Components/Tiktok.php b/src/Document/Components/Tiktok.php new file mode 100644 index 0000000..5fd64a4 --- /dev/null +++ b/src/Document/Components/Tiktok.php @@ -0,0 +1,50 @@ +setUrl($url); + } + + /** + * Getter for url. + */ + public function getUrl() { + return $this->URL; + } + + /** + * Setter for url. + * + * @param mixed $value + * Url. + * + * @return $this + */ + public function setUrl($value) { + $this->URL = $value; + return $this; + } + +} diff --git a/tests/Document/Components/TiktokTest.php b/tests/Document/Components/TiktokTest.php new file mode 100644 index 0000000..ea74ead --- /dev/null +++ b/tests/Document/Components/TiktokTest.php @@ -0,0 +1,28 @@ +assertJsonStringEqualsJsonString($expected, $obj->json()); + + } + +}