Interfaces and Traits for PHP's magic methods