Changed some magic methods to the documented ones

This makes the static analysis tools happier.
Changed the phpdoc to use inheritdoc

Refs Behat/Mink#425