* All hugs are mutual. An object that is hugged MUST in turn hug the * other object back by calling hug() on the first parameter. */ public function hug(Huggable $h); }
container that exposes methods to read its entries. */ interface ContainerInterface { /** * Finds an entry of the container by its identifier and returns it. * */ public function get($id); /** * Returns true if the container can return an entry for the given identifier. * Returns false otherwise. * */ public function has($id); }