aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/league/html-to-markdown/src/ElementInterface.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-05 08:47:24 +0000
committerMario <mario@mariovavti.com>2021-06-05 08:47:24 +0000
commitfd8a5ff4c49fc1361f9928ea4d33e6d24d43a3a5 (patch)
tree7560147f31a273fb8f0e05476f99f1deea0e12de /vendor/league/html-to-markdown/src/ElementInterface.php
parent4db384da34595adef68be6226e8b331b4d7b7f31 (diff)
downloadvolse-hubzilla-fd8a5ff4c49fc1361f9928ea4d33e6d24d43a3a5.tar.gz
volse-hubzilla-fd8a5ff4c49fc1361f9928ea4d33e6d24d43a3a5.tar.bz2
volse-hubzilla-fd8a5ff4c49fc1361f9928ea4d33e6d24d43a3a5.zip
composer update league/html-to-markdown
Diffstat (limited to 'vendor/league/html-to-markdown/src/ElementInterface.php')
-rw-r--r--vendor/league/html-to-markdown/src/ElementInterface.php78
1 files changed, 24 insertions, 54 deletions
diff --git a/vendor/league/html-to-markdown/src/ElementInterface.php b/vendor/league/html-to-markdown/src/ElementInterface.php
index 138ddf286..d8477cfae 100644
--- a/vendor/league/html-to-markdown/src/ElementInterface.php
+++ b/vendor/league/html-to-markdown/src/ElementInterface.php
@@ -1,80 +1,50 @@
<?php
+declare(strict_types=1);
+
namespace League\HTMLToMarkdown;
interface ElementInterface
{
- /**
- * @return bool
- */
- public function isBlock();
+ public function isBlock(): bool;
- /**
- * @return bool
- */
- public function isText();
+ public function isText(): bool;
- /**
- * @return bool
- */
- public function isWhitespace();
+ public function isWhitespace(): bool;
- /**
- * @return string
- */
- public function getTagName();
+ public function getTagName(): string;
- /**
- * @return string
- */
- public function getValue();
+ public function getValue(): string;
- /**
- * @return ElementInterface|null
- */
- public function getParent();
+ public function hasParent(): bool;
+
+ public function getParent(): ?ElementInterface;
+
+ public function getNextSibling(): ?ElementInterface;
+
+ public function getPreviousSibling(): ?ElementInterface;
/**
* @param string|string[] $tagNames
- *
- * @return bool
*/
- public function isDescendantOf($tagNames);
+ public function isDescendantOf($tagNames): bool;
- /**
- * @return bool
- */
- public function hasChildren();
+ public function hasChildren(): bool;
/**
* @return ElementInterface[]
*/
- public function getChildren();
+ public function getChildren(): array;
- /**
- * @return ElementInterface|null
- */
- public function getNext();
+ public function getNext(): ?ElementInterface;
- /**
- * @return int
- */
- public function getSiblingPosition();
+ public function getSiblingPosition(): int;
- /**
- * @return string
- */
- public function getChildrenAsString();
+ public function getChildrenAsString(): string;
- /**
- * @param string $markdown
- */
- public function setFinalMarkdown($markdown);
+ public function setFinalMarkdown(string $markdown): void;
- /**
- * @param string $name
- *
- * @return string
- */
- public function getAttribute($name);
+ public function getListItemLevel(): int;
+
+ public function getAttribute(string $name): string;
}