Skip to content

Commit e0c8a38

Browse files
authored
Merge pull request paquettg#204 from tfedor/feature-options-to-array
Add method to return options as array
2 parents 6ec838a + 5a6130b commit e0c8a38

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
@@ -95,4 +95,13 @@ public function get(string $key)
9595
return $this->options[$key];
9696
}
9797
}
98+
99+
/**
100+
* Return current options as array
101+
*
102+
* @return array
103+
*/
104+
public function asArray() {
105+
return $this->options;
106+
}
98107
}

0 commit comments

Comments
 (0)