Made Yaml class methods static to remove PHP 5.4 strict error warnings