value as $product) { if (! $product instanceof IncoCode) { throw new \DomainException('Value of CouponProductArray must be IncoCode instances.'); } } } }