public function findItemByUid(int $uid)
    {
        $queryBuilder = $this->getQueryBuilder();
        $indexQueueItemRecord = $queryBuilder
            ->select('*')
            ->from($this->table)
            ->where($queryBuilder->expr()->eq('uid', $uid))
            ->execute()->fetch();

        if (!isset($indexQueueItemRecord['uid'])) {
            return null;
        }

        /** @var Item $item*/
        $item = GeneralUtility::makeInstance(Item::class, /** @scrutinizer ignore-type */ $indexQueueItemRecord);
        return $item;
    }
public function findItemByUid(int $uid)
    {
        $queryBuilder = $this->getQueryBuilder();
        $indexQueueItemRecord = $queryBuilder
            ->select('*')
            ->from($this->table)
            ->where($queryBuilder->expr()->eq('uid', $uid))
            ->execute()->fetch();

        if (!isset($indexQueueItemRecord['uid'])) {
            return null;
        }

        /** @var Item $item*/
        $item = GeneralUtility::makeInstance(Item::class, /** @scrutinizer ignore-type */ $indexQueueItemRecord);
        return $item;
    }
public function findItemByUid ( int $ uid ) { $ queryBuilder = $ this -> getQueryBuilder ( ) ; $ indexQueueItemRecord = $ queryBuilder -> select ( '*' ) -> from ( $ this -> table ) -> where ( $ queryBuilder -> expr ( ) -> eq ( 'uid' , $ uid ) ) -> execute ( ) -> fetch ( ) ; if ( ! isset ( $ indexQueueItemRecord [ 'uid' ] ) ) { return null ; } /** @var Item $item*/ $ item = GeneralUtility :: makeInstance ( Item :: class , /** @scrutinizer ignore-type */ $ indexQueueItemRecord ) ; return $ item ; }
Gets a single Index Queue item by its uid.

@param int $uid Index Queue item uid
@return Item|null The request Index Queue item or NULL if no item with $itemId was found
Gets a single Index Queue item by its uid .