fixed call magic methods and added PHPDoc annotations