protected function buildDomainBinaryFileObject(SPIBinaryFile $spiBinaryFile)
    {
        return new BinaryFile(
            array(
                'size' => (int)$spiBinaryFile->size,
                'mtime' => $spiBinaryFile->mtime,
                'id' => $this->removeUriPrefix($spiBinaryFile->id),
                'uri' => $spiBinaryFile->uri,
                'mimeType' => $spiBinaryFile->mimeType ?: $this->metadataHandler->getMimeType($spiBinaryFile->id),
            )
        );
    }
protected function buildDomainBinaryFileObject(SPIBinaryFile $spiBinaryFile)
    {
        return new BinaryFile(
            array(
                'size' => (int)$spiBinaryFile->size,
                'mtime' => $spiBinaryFile->mtime,
                'id' => $this->removeUriPrefix($spiBinaryFile->id),
                'uri' => $spiBinaryFile->uri,
                'mimeType' => $spiBinaryFile->mimeType ?: $this->metadataHandler->getMimeType($spiBinaryFile->id),
            )
        );
    }
protected function buildDomainBinaryFileObject ( SPIBinaryFile $ spiBinaryFile ) { return new BinaryFile ( array ( 'size' => ( int ) $ spiBinaryFile -> size , 'mtime' => $ spiBinaryFile -> mtime , 'id' => $ this -> removeUriPrefix ( $ spiBinaryFile -> id ) , 'uri' => $ spiBinaryFile -> uri , 'mimeType' => $ spiBinaryFile -> mimeType ? : $ this -> metadataHandler -> getMimeType ( $ spiBinaryFile -> id ) , ) ) ; }
Generates API BinaryFile object from provided SPI BinaryFile object.

@param \eZ\Publish\SPI\IO\BinaryFile $spiBinaryFile

@return \eZ\Publish\Core\IO\Values\BinaryFile
Generates API BinaryFile object from provided SPI BinaryFile object .