Support for object instead of name

FIX: Add missed phpDoc ;)