Skip to content

Commit

Permalink
Updated annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Dec 31, 2023
1 parent d992e67 commit aecb43a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/patchMethodAnnotations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions src/CdataSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions src/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/DocumentFragment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions src/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit aecb43a

Please sign in to comment.