Mar 31, 2023
In PHP, when a class implements an interface, it is required to implement all the methods defined in that interface. Failure to implement any of the methods in the interface will result in a fatal error when the code is executed. But in your ISP example PaymentInterface you have two method but you implement only one what will produce fatal error.