The question is quite simple - how do I distinguish phpdoc for the interface and the class implementation interface? Should they be the same or maybe the front-end documentation should be as general as possible, and the class implementing this interface more specific?
I include one phpDoc method from my real code:
My interface:
interface CacheInterface { public function put( $objectId, $objectValue, $lifetime = null, $group = null, $params = array(), $files = array() ); }
Class implementation interface:
class Cache implements CacheInterface { public function put( $objectId, $objectValue, $lifetime = null, $group = null, $params = array(), $files = array() ) {
What does the documentation look like? More general to the interface and more specific to the class implementing this interface?
php class interface documentation phpdoc
Marcin nabiaΕek
source share