master

laravel/framework

Last updated at: 29/12/2023 09:24

Looping.php

TLDR

This file contains the Looping class in the Illuminate\Queue\Events namespace. The class has two public properties: connectionName and queue. It also includes a constructor method to initialize these properties.

Classes

Looping

The Looping class is used to represent an event that occurs when a queue is being looped over. It has the following public properties:

  • connectionName (string): The name of the connection.
  • queue (string): The name of the queue.

The class also includes a constructor method that takes in the connection name and queue name as parameters and initializes the corresponding properties.

<?php

namespace Illuminate\Queue\Events;

class Looping
{
    /**
     * The connection name.
     *
     * @var string
     */
    public $connectionName;

    /**
     * The queue name.
     *
     * @var string
     */
    public $queue;

    /**
     * Create a new event instance.
     *
     * @param  string  $connectionName
     * @param  string  $queue
     * @return void
     */
    public function __construct($connectionName, $queue)
    {
        $this->queue = $queue;
        $this->connectionName = $connectionName;
    }
}