Fix docblocks and minor refactoring of __get() method

We usually use the verbose `\Cake\...` version instead of object, though.