public function __construct(array $checkouts = []) { $this->checkouts = []; foreach ($checkouts as $checkout) { $this->add($checkout); } }