From 00fd4003cfd6aeea5d5840849d243d6dbfbdac85 Mon Sep 17 00:00:00 2001 From: David Beasley Date: Tue, 1 Mar 2022 15:37:06 +0000 Subject: [PATCH 1/2] Updated Apple News version number to 1.14 --- src/Document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Document.php b/src/Document.php index 8042fed..0f5ebc2 100644 --- a/src/Document.php +++ b/src/Document.php @@ -24,7 +24,7 @@ */ class Document extends Base { - protected $version = '1.2'; + protected $version = '1.14'; protected $identifier; protected $title; protected $language; From 92a8a6dd883132f3918ebc2c342ce5583cc945a2 Mon Sep 17 00:00:00 2001 From: David Beasley Date: Mon, 7 Mar 2022 10:24:17 +0000 Subject: [PATCH 2/2] Added Document setVersion method Allows clients to determine the compatibility level they wish to use. --- src/Document.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Document.php b/src/Document.php index 0f5ebc2..43819c7 100644 --- a/src/Document.php +++ b/src/Document.php @@ -84,6 +84,19 @@ public function getVersion() { return $this->version; } + /** + * Setter for version. + * + * @param mixed $value + * Version. + * + * @return $this + */ + public function setVersion($version) { + $this->version = (string) $version; + return $this; + } + /** * Getter for identifier. */