Use class names as typehint in function definitions instead of its fully qualified name

d.o issue: https://www.drupal.org/node/2305895