سلام
در کد زیر
abstract class AbstractCouponValidator implements couponValidatorInterface
{
private $nextValidator;
public function setNextValidator(couponValidatorInterface $Validator )
{
$this->nextValidator=$Validator;
}
public function validate(coupon $coupon)
{
if ($this->nextValidator ==null){
return true;
}
return $this->nextValidator->validate($coupon);
}
}
در بخش
return $this->nextValidator->validate($coupon);
متود
validate
که این جا صدا زده شده است
کجا تعریف شده است؟