PHP .Net like wrapper classes