Interface
TypeInterface
Magento\Tax\Model\TaxClass\Type\TypeInterface
What it does
This interface defines the contract for tax class types in Magento 2, which represent categories that tax rules can be applied to (like product tax classes or customer tax classes).
Developers would implement this interface when creating custom tax class types or use it to check if a tax class is being used by objects, retrieve associated tax rules, or get the type name of objects using the tax class.
Public Methods
- isAssignedToObjects()
- getAssignedToRules()
- getObjectTypeName()