From 0e09c25b4993f014db4de4b9d67e98e1c3525b42 Mon Sep 17 00:00:00 2001 From: jetwitaussi Date: Fri, 5 Nov 2021 08:53:55 +0100 Subject: [PATCH] Rename Match class for php8 compliance --- .../User/Bookmark/{Match.php => HTMatch.php} | 2 +- PHT/Xml/User/Bookmarks.php | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) rename PHT/Xml/User/Bookmark/{Match.php => HTMatch.php} (96%) diff --git a/PHT/Xml/User/Bookmark/Match.php b/PHT/Xml/User/Bookmark/HTMatch.php similarity index 96% rename from PHT/Xml/User/Bookmark/Match.php rename to PHT/Xml/User/Bookmark/HTMatch.php index cae325d..863f0bd 100644 --- a/PHT/Xml/User/Bookmark/Match.php +++ b/PHT/Xml/User/Bookmark/HTMatch.php @@ -18,7 +18,7 @@ use PHT\Utils; use PHT\Wrapper; -class Match extends Xml\User\Bookmark\Element +class HTMatch extends Xml\User\Bookmark\Element { /** * Return teams names diff --git a/PHT/Xml/User/Bookmarks.php b/PHT/Xml/User/Bookmarks.php index 484ce0b..44edbb3 100644 --- a/PHT/Xml/User/Bookmarks.php +++ b/PHT/Xml/User/Bookmarks.php @@ -178,7 +178,7 @@ public function getBookmarkSeniorMatchNumber() * Return bookmark match object * * @param integer $index - * @return \PHT\Xml\User\Bookmark\Match + * @return \PHT\Xml\User\Bookmark\HTMatch */ public function getBookmarkSeniorMatch($index) { @@ -189,7 +189,7 @@ public function getBookmarkSeniorMatch($index) $nodeList = $xpath->query('//BookmarkTypeID[.="' . Config\Config::BOOKMARK_SENIOR_MATCH . '"]'); $bookmark = new \DOMDocument('1.0', 'UTF-8'); $bookmark->appendChild($bookmark->importNode($nodeList->item($index)->parentNode, true)); - return new Bookmark\Match($bookmark); + return new Bookmark\HTMatch($bookmark); } return null; } @@ -197,7 +197,7 @@ public function getBookmarkSeniorMatch($index) /** * Return iterator of bookmark match objects * - * @return \PHT\Xml\User\Bookmark\Match[] + * @return \PHT\Xml\User\Bookmark\HTMatch[] */ public function getBookmarkSeniorMatches() { @@ -208,8 +208,8 @@ public function getBookmarkSeniorMatches() $bookmark->appendChild($bookmark->importNode($nodeList->item($i)->parentNode, true)); } $nodes = $bookmark->getElementsByTagName('Bookmark'); - /** @var \PHT\Xml\User\Bookmark\Match[] $data */ - $data = new Utils\XmlIterator($nodes, '\PHT\Xml\User\Bookmark\Match'); + /** @var \PHT\Xml\User\Bookmark\HTMatch[] $data */ + $data = new Utils\XmlIterator($nodes, '\PHT\Xml\User\Bookmark\HTMatch'); return $data; } @@ -428,7 +428,7 @@ public function getBookmarkYouthMatchNumber() * Return bookmark match object * * @param integer $index - * @return \PHT\Xml\User\Bookmark\Match + * @return \PHT\Xml\User\Bookmark\HTMatch */ public function getBookmarkYouthMatch($index) { @@ -439,7 +439,7 @@ public function getBookmarkYouthMatch($index) $nodeList = $xpath->query('//BookmarkTypeID[.="' . Config\Config::BOOKMARK_YOUTH_MATCH . '"]'); $bookmark = new \DOMDocument('1.0', 'UTF-8'); $bookmark->appendChild($bookmark->importNode($nodeList->item($index)->parentNode, true)); - return new Bookmark\Match($bookmark); + return new Bookmark\HTMatch($bookmark); } return null; } @@ -447,7 +447,7 @@ public function getBookmarkYouthMatch($index) /** * Return iterator of bookmark match objects * - * @return \PHT\Xml\User\Bookmark\Match[] + * @return \PHT\Xml\User\Bookmark\HTMatch[] */ public function getBookmarkYouthMatches() { @@ -458,8 +458,8 @@ public function getBookmarkYouthMatches() $bookmark->appendChild($bookmark->importNode($nodeList->item($i)->parentNode, true)); } $nodes = $bookmark->getElementsByTagName('Bookmark'); - /** @var \PHT\Xml\User\Bookmark\Match[] $data */ - $data = new Utils\XmlIterator($nodes, '\PHT\Xml\User\Bookmark\Match'); + /** @var \PHT\Xml\User\Bookmark\HTMatch[] $data */ + $data = new Utils\XmlIterator($nodes, '\PHT\Xml\User\Bookmark\HTMatch'); return $data; }