<?php

// Run as an object (no retries)
$result = ExampleJob::run(42);
$result = ExampleJob::runIf(true, 42);
$result = ExampleJob::runUnless(false, 42);

// Dispatch to the queue (with retries)
ExampleJob::dispatch(42);
ExampleJob::dispatchIf(true, 42);
ExampleJob::dispatchUnless(false, 42);