diff --git a/scripts/patchMethodAnnotations.php b/scripts/patchMethodAnnotations.php index 993a228..0d49e89 100755 --- a/scripts/patchMethodAnnotations.php +++ b/scripts/patchMethodAnnotations.php @@ -93,7 +93,7 @@ function exportReflectionType(ReflectionType $type): string } } -foreach (glob(__DIR__ . '/../src/Element.php') as $filepath) +foreach (glob(__DIR__ . '/../src/*.php') as $filepath) { $filepath = realpath($filepath); $file = file_get_contents($filepath); diff --git a/src/CdataSection.php b/src/CdataSection.php index 2d97849..16d1ccf 100644 --- a/src/CdataSection.php +++ b/src/CdataSection.php @@ -13,6 +13,7 @@ /** * @method Comment afterComment(string $data) +* @method mixed afterDocumentFragment(?callable $callback = null) * @method Element afterElement(string $nodeName, string $textContent = '') * @method Element afterElementNS(?string $namespace, string $nodeName, string $textContent = '') * @method Element afterXslApplyTemplates(?string $select = null, ?string $mode = null) @@ -28,6 +29,7 @@ * @method Element afterXslVariable(string $name, ?string $select = null) * @method Element afterXslWhen(string $test, string $textContent = '') * @method Comment beforeComment(string $data) +* @method mixed beforeDocumentFragment(?callable $callback = null) * @method Element beforeElement(string $nodeName, string $textContent = '') * @method Element beforeElementNS(?string $namespace, string $nodeName, string $textContent = '') * @method Element beforeXslApplyTemplates(?string $select = null, ?string $mode = null) @@ -43,6 +45,7 @@ * @method Element beforeXslVariable(string $name, ?string $select = null) * @method Element beforeXslWhen(string $test, string $textContent = '') * @method Comment replaceWithComment(string $data) +* @method mixed replaceWithDocumentFragment(?callable $callback = null) * @method Element replaceWithElement(string $nodeName, string $textContent = '') * @method Element replaceWithElementNS(?string $namespace, string $nodeName, string $textContent = '') * @method Element replaceWithXslApplyTemplates(?string $select = null, ?string $mode = null) diff --git a/src/Comment.php b/src/Comment.php index 7394968..2ac4831 100644 --- a/src/Comment.php +++ b/src/Comment.php @@ -13,6 +13,7 @@ /** * @method Comment afterComment(string $data) +* @method mixed afterDocumentFragment(?callable $callback = null) * @method Element afterElement(string $nodeName, string $textContent = '') * @method Element afterElementNS(?string $namespace, string $nodeName, string $textContent = '') * @method Element afterXslApplyTemplates(?string $select = null, ?string $mode = null) @@ -28,6 +29,7 @@ * @method Element afterXslVariable(string $name, ?string $select = null) * @method Element afterXslWhen(string $test, string $textContent = '') * @method Comment beforeComment(string $data) +* @method mixed beforeDocumentFragment(?callable $callback = null) * @method Element beforeElement(string $nodeName, string $textContent = '') * @method Element beforeElementNS(?string $namespace, string $nodeName, string $textContent = '') * @method Element beforeXslApplyTemplates(?string $select = null, ?string $mode = null) @@ -43,6 +45,7 @@ * @method Element beforeXslVariable(string $name, ?string $select = null) * @method Element beforeXslWhen(string $test, string $textContent = '') * @method Comment replaceWithComment(string $data) +* @method mixed replaceWithDocumentFragment(?callable $callback = null) * @method Element replaceWithElement(string $nodeName, string $textContent = '') * @method Element replaceWithElementNS(?string $namespace, string $nodeName, string $textContent = '') * @method Element replaceWithXslApplyTemplates(?string $select = null, ?string $mode = null) diff --git a/src/DocumentFragment.php b/src/DocumentFragment.php index 0375081..8a42c63 100644 --- a/src/DocumentFragment.php +++ b/src/DocumentFragment.php @@ -13,6 +13,7 @@ /** * @method Comment appendComment(string $data) +* @method mixed appendDocumentFragment(?callable $callback = null) * @method Element appendElement(string $nodeName, string $textContent = '') * @method Element appendElementNS(?string $namespace, string $nodeName, string $textContent = '') * @method Element appendXslApplyTemplates(?string $select = null, ?string $mode = null) @@ -28,6 +29,7 @@ * @method Element appendXslVariable(string $name, ?string $select = null) * @method Element appendXslWhen(string $test, string $textContent = '') * @method Comment prependComment(string $data) +* @method mixed prependDocumentFragment(?callable $callback = null) * @method Element prependElement(string $nodeName, string $textContent = '') * @method Element prependElementNS(?string $namespace, string $nodeName, string $textContent = '') * @method Element prependXslApplyTemplates(?string $select = null, ?string $mode = null) diff --git a/src/Text.php b/src/Text.php index 1b7fef9..a1aa0e7 100644 --- a/src/Text.php +++ b/src/Text.php @@ -13,6 +13,7 @@ /** * @method Comment afterComment(string $data) +* @method mixed afterDocumentFragment(?callable $callback = null) * @method Element afterElement(string $nodeName, string $textContent = '') * @method Element afterElementNS(?string $namespace, string $nodeName, string $textContent = '') * @method Element afterXslApplyTemplates(?string $select = null, ?string $mode = null) @@ -28,6 +29,7 @@ * @method Element afterXslVariable(string $name, ?string $select = null) * @method Element afterXslWhen(string $test, string $textContent = '') * @method Comment beforeComment(string $data) +* @method mixed beforeDocumentFragment(?callable $callback = null) * @method Element beforeElement(string $nodeName, string $textContent = '') * @method Element beforeElementNS(?string $namespace, string $nodeName, string $textContent = '') * @method Element beforeXslApplyTemplates(?string $select = null, ?string $mode = null) @@ -43,6 +45,7 @@ * @method Element beforeXslVariable(string $name, ?string $select = null) * @method Element beforeXslWhen(string $test, string $textContent = '') * @method Comment replaceWithComment(string $data) +* @method mixed replaceWithDocumentFragment(?callable $callback = null) * @method Element replaceWithElement(string $nodeName, string $textContent = '') * @method Element replaceWithElementNS(?string $namespace, string $nodeName, string $textContent = '') * @method Element replaceWithXslApplyTemplates(?string $select = null, ?string $mode = null)