src/Micrometa/Ports/Item/Item.php
protected function getPropertyIndex(array $propertyValues, $index)
    {
        // If the property value index is out of bounds
        if (!isset($propertyValues[$index])) {
            throw new OutOfBoundsException(
                sprintf(OutOfBoundsException::INVALID_PROPERTY_VALUE_INDEX_STR, $index),
                OutOfBoundsException::INVALID_PROPERTY_VALUE_INDEX
            );
        }

        return $this->getPropertyValue($propertyValues[$index]);
    }
protected function getPropertyIndex(array $propertyValues, $index)
    {
        // If the property value index is out of bounds
        if (!isset($propertyValues[$index])) {
            throw new OutOfBoundsException(
                sprintf(OutOfBoundsException::INVALID_PROPERTY_VALUE_INDEX_STR, $index),
                OutOfBoundsException::INVALID_PROPERTY_VALUE_INDEX
            );
        }

        return $this->getPropertyValue($propertyValues[$index]);
    }
protected function getPropertyIndex ( array $ propertyValues , $ index ) { // If the property value index is out of bounds if ( ! isset ( $ propertyValues [ $ index ] ) ) { throw new OutOfBoundsException ( sprintf ( OutOfBoundsException :: INVALID_PROPERTY_VALUE_INDEX_STR , $ index ) , OutOfBoundsException :: INVALID_PROPERTY_VALUE_INDEX ) ; } return $ this -> getPropertyValue ( $ propertyValues [ $ index ] ) ; }
Return a particular property index

@param ValueInterface[] $propertyValues Property values
@param int $index                       Property value index

@return ValueInterface|ItemInterface
Return a particular property index