Fix phpdoc and function scope

@PedroTroller these interfaces are in the Adapter subnamespace because they are used to qualify an adapter (sayign it knows metadata).

but in any case, ``element`` looks weird