public static function create(string $identifier, string $type): QueueItemInterface
    {
        $queueItem = new self();
        $queueItem
            ->setIdentifier($identifier)
            ->setType($type);

        return $queueItem;
    }
public static function create(string $identifier, string $type): QueueItemInterface
    {
        $queueItem = new self();
        $queueItem
            ->setIdentifier($identifier)
            ->setType($type);

        return $queueItem;
    }
public static function create ( string $ identifier , string $ type ) : QueueItemInterface { $ queueItem = new self ( ) ; $ queueItem -> setIdentifier ( $ identifier ) -> setType ( $ type ) ; return $ queueItem ; }
The create method creates a valid queue item object.

@param string $identifier
@param string $type

@return QueueItemInterface
The create method creates a valid queue item object .