public function getByUID($uid)
    {
        return array_filter($this->getComponents(), function ($item) use ($uid) {
            if (!$itemUid = $item->select('UID')) {
                return false;
            }
            $itemUid = current($itemUid)->getValue();

            return $uid === $itemUid;
        });
    }
public function getByUID($uid)
    {
        return array_filter($this->getComponents(), function ($item) use ($uid) {
            if (!$itemUid = $item->select('UID')) {
                return false;
            }
            $itemUid = current($itemUid)->getValue();

            return $uid === $itemUid;
        });
    }
public function getByUID ( $ uid ) { return array_filter ( $ this -> getComponents ( ) , function ( $ item ) use ( $ uid ) { if ( ! $ itemUid = $ item -> select ( 'UID' ) ) { return false ; } $ itemUid = current ( $ itemUid ) -> getValue ( ) ; return $ uid === $ itemUid ; } ) ; }
Returns all components with a specific UID value.

@return array
Returns all components with a specific UID value .