Skip to content

Commit 5a6130b

Browse files
committed
Add method to return options as array
1 parent 668c770 commit 5a6130b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/PHPHtmlParser/Options.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,13 @@ public function get(string $key)
9797

9898
return null;
9999
}
100+
101+
/**
102+
* Return current options as array
103+
*
104+
* @return array
105+
*/
106+
public function asArray() {
107+
return $this->options;
108+
}
100109
}

0 commit comments

Comments
 (0)