Trên PHP Framework Interop Group site (nhà duy trì PSRs), có một dự thảo PSR-8 Huggable Interface:HuggableInterface trong PHP và PSR-8
namespace Psr\Hug;
/**
* Defines a huggable object.
*
* A huggable object expresses mutual affection with another huggable object.
*/
interface Huggable
{
/**
* Hugs this object.
*
* All hugs are mutual. An object that is hugged MUST in turn hug the other
* object back by calling hug() on the first parameter. All objects MUST
* implement a mechanism to prevent an infinite loop of hugging.
*
* @param Huggable $h
* The object that is hugging this object.
*/
public function hug(Huggable $h);
}
Dự thảo là khá ngắn nhưng không cung cấp bất kỳ ví dụ thực hiện. Mục đích của việc triển khai giao diện này là gì?