Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Oct 16, 2023
1 parent 9be2b51 commit d0a3bb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ string(1) "2"

Elements can be easily created and added relative to the context node via the following API:
```php
Element afterElement(string $nodeName, string $text = '')
Element appendElement(string $nodeName, string $text = '')
Element beforeElement(string $nodeName, string $text = '')
Element prependElement(string $nodeName, string $text = '')
Element afterElement(string $nodeName, string $textContent = '')
Element appendElement(string $nodeName, string $textContent = '')
Element beforeElement(string $nodeName, string $textContent = '')
Element prependElement(string $nodeName, string $textContent = '')
```

```php
Expand Down
4 changes: 4 additions & 0 deletions src/NodeCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function createComment(string $data): Comment

/**
* Create and return an element
*
* @param string $nodeName Full qualified name for the node
* @param string $textContent Text content, will be automatically escaped
* @return Element
*/
public function createElement(string $nodeName, string $textContent = ''): Element
{
Expand Down

0 comments on commit d0a3bb7

Please sign in to comment.