Changed type hinting to phpDoc