add phpdoc for magic methods