PHP 5.5+ magic mediator and native state transformation utility