Made `$visibility` real optional in write command in both the interface and some adapters.
Updated some phpDocs as well.