private function preProcessTuple($tuple)
    {
        // Pre-format our tuple
        if ($tuple instanceof ParsedFileID) {
            return $tuple;
        } elseif (!is_array($tuple)) {
            throw new \InvalidArgumentException(
                'AssetAdapter expect $tuples to be an array or a ParsedFileID'
            );
        }

        return new ParsedFileID($tuple['Filename'], $tuple['Hash'], $tuple['Variant']);
    }
private function preProcessTuple($tuple)
    {
        // Pre-format our tuple
        if ($tuple instanceof ParsedFileID) {
            return $tuple;
        } elseif (!is_array($tuple)) {
            throw new \InvalidArgumentException(
                'AssetAdapter expect $tuples to be an array or a ParsedFileID'
            );
        }

        return new ParsedFileID($tuple['Filename'], $tuple['Hash'], $tuple['Variant']);
    }
private function preProcessTuple ( $ tuple ) { // Pre-format our tuple if ( $ tuple instanceof ParsedFileID ) { return $ tuple ; } elseif ( ! is_array ( $ tuple ) ) { throw new \ InvalidArgumentException ( 'AssetAdapter expect $tuples to be an array or a ParsedFileID' ) ; } return new ParsedFileID ( $ tuple [ 'Filename' ] , $ tuple [ 'Hash' ] , $ tuple [ 'Variant' ] ) ; }
Receive a tuple under various formats and normalise it back to a ParsedFileID object.
@param $tuple
@return ParsedFileID
@throws \InvalidArgumentException
Receive a tuple under various formats and normalise it back to a ParsedFileID object .