for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\EmailCampaigns\Support\Segments;
use Illuminate\Database\Eloquent\Builder;
use Spatie\EmailCampaigns\Models\Campaign;
use Spatie\EmailCampaigns\Models\Subscription;
abstract class Segment
{
public function getSubscriptionsQuery(Campaign $campaign): Builder
return $campaign->emailList->subscriptions()->getQuery();
}
public function shouldSend(Subscription $subscription, Campaign $campaign): bool
$subscription
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$campaign
return true;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.