private function parseImageId($imageId)
    {
        $idArray = explode('-', $imageId);

        if (count($idArray) == 2) {
            return array_merge($idArray, [null]);
        } elseif (count($idArray) == 3) {
            return $idArray;
        }

        throw new Exceptions\NotFoundException("Invalid image ID {$imageId}");
    }
private function parseImageId($imageId)
    {
        $idArray = explode('-', $imageId);

        if (count($idArray) == 2) {
            return array_merge($idArray, [null]);
        } elseif (count($idArray) == 3) {
            return $idArray;
        }

        throw new Exceptions\NotFoundException("Invalid image ID {$imageId}");
    }
private function parseImageId ( $ imageId ) { $ idArray = explode ( '-' , $ imageId ) ; if ( count ( $ idArray ) == 2 ) { return array_merge ( $ idArray , [ null ] ) ; } elseif ( count ( $ idArray ) == 3 ) { return $ idArray ; } throw new Exceptions \ NotFoundException ( "Invalid image ID {$imageId}" ) ; }
Parses an imageId string into contentId, fieldId and versionNumber.

@param string $imageId Either {contentId}-{fieldId} or {contentId}-{fieldId}-{versionNumber}

@return array An array with 3 keys: contentId, fieldId and versionNumber.
If the versionNumber wasn't set, it is returned as null.

@throws \eZ\Publish\Core\REST\Common\Exceptions\NotFoundException If the imageId format is invalid
Parses an imageId string into contentId fieldId and versionNumber .