OOP Wrapper for the yaml pecl extension