Specification\Factory
Magento\Payment\Model\Method\Specification\Factory
What it does
This factory class creates specification objects that define rules or criteria for payment methods.
Developers use this to instantiate payment method specification classes that implement validation logic, such as checking if a payment method is available for a specific country or currency.
It ensures type safety by validating that created objects implement the SpecificationInterface.
Public Methods
- create()