Interface
AttributeInterface
Magento\Eav\Model\Entity\Attribute\AttributeInterface
What it does
This is a marker interface that serves as a base contract for all EAV (Entity-Attribute-Value) attribute types in Magento 2.
Developers use this interface to type-hint methods that work with any kind of attribute (product, customer, category attributes, etc.), ensuring compatibility across different attribute implementations while maintaining loose coupling in the system.