protected function unmarshallFile(array $unit)
    {
        $filename = (empty($unit['base']['file']['name']) === true) ? '' : $unit['base']['file']['name'];

        return $this->getFileManager()->createFromData(base64_decode($unit['base']['file']['data']), $unit['base']['file']['mime'], $filename);
    }
protected function unmarshallFile(array $unit)
    {
        $filename = (empty($unit['base']['file']['name']) === true) ? '' : $unit['base']['file']['name'];

        return $this->getFileManager()->createFromData(base64_decode($unit['base']['file']['data']), $unit['base']['file']['mime'], $filename);
    }
protected function unmarshallFile ( array $ unit ) { $ filename = ( empty ( $ unit [ 'base' ] [ 'file' ] [ 'name' ] ) === true ) ? '' : $ unit [ 'base' ] [ 'file' ] [ 'name' ] ; return $ this -> getFileManager ( ) -> createFromData ( base64_decode ( $ unit [ 'base' ] [ 'file' ] [ 'data' ] ) , $ unit [ 'base' ] [ 'file' ] [ 'mime' ] , $ filename ) ; }
Unmarshall a duration JSON PCI representation.

@param array $unit
@return \qtism\common\datatypes\File
Unmarshall a duration JSON PCI representation .