src/Micrometa/Ports/Item/ItemObjectModel.php
protected function getLinkIndex(array $links, $type, $index)
    {
        // If the link index is out of bounds
        if (!is_int($index) || !array_key_exists($index, $links)) {
            throw new OutOfBoundsException(
                sprintf(OutOfBoundsException::INVALID_LINK_TYPE_INDEX_STR, $index, $type),
                OutOfBoundsException::INVALID_LINK_TYPE_INDEX
            );
        }

        return $links[$index];
    }
protected function getLinkIndex(array $links, $type, $index)
    {
        // If the link index is out of bounds
        if (!is_int($index) || !array_key_exists($index, $links)) {
            throw new OutOfBoundsException(
                sprintf(OutOfBoundsException::INVALID_LINK_TYPE_INDEX_STR, $index, $type),
                OutOfBoundsException::INVALID_LINK_TYPE_INDEX
            );
        }

        return $links[$index];
    }
protected function getLinkIndex ( array $ links , $ type , $ index ) { // If the link index is out of bounds if ( ! is_int ( $ index ) || ! array_key_exists ( $ index , $ links ) ) { throw new OutOfBoundsException ( sprintf ( OutOfBoundsException :: INVALID_LINK_TYPE_INDEX_STR , $ index , $ type ) , OutOfBoundsException :: INVALID_LINK_TYPE_INDEX ) ; } return $ links [ $ index ] ; }
Return a particular link item by index

@param ItemInterface[] $links Link items
@param string|null $type      Link type
@param int $index             Link item index

@return ItemInterface Link item
@throws OutOfBoundsException If the link index is out of bounds
Return a particular link item by index