protected function buildSPIBinaryFileCreateStructObject(BinaryFileCreateStruct $binaryFileCreateStruct)
    {
        $spiBinaryCreateStruct = new SPIBinaryFileCreateStruct();

        $spiBinaryCreateStruct->id = $this->getPrefixedUri($binaryFileCreateStruct->id);
        $spiBinaryCreateStruct->size = $binaryFileCreateStruct->size;
        $spiBinaryCreateStruct->setInputStream($binaryFileCreateStruct->inputStream);
        $spiBinaryCreateStruct->mimeType = $binaryFileCreateStruct->mimeType;
        $spiBinaryCreateStruct->mtime = new \DateTime();

        return $spiBinaryCreateStruct;
    }
protected function buildSPIBinaryFileCreateStructObject(BinaryFileCreateStruct $binaryFileCreateStruct)
    {
        $spiBinaryCreateStruct = new SPIBinaryFileCreateStruct();

        $spiBinaryCreateStruct->id = $this->getPrefixedUri($binaryFileCreateStruct->id);
        $spiBinaryCreateStruct->size = $binaryFileCreateStruct->size;
        $spiBinaryCreateStruct->setInputStream($binaryFileCreateStruct->inputStream);
        $spiBinaryCreateStruct->mimeType = $binaryFileCreateStruct->mimeType;
        $spiBinaryCreateStruct->mtime = new \DateTime();

        return $spiBinaryCreateStruct;
    }
protected function buildSPIBinaryFileCreateStructObject ( BinaryFileCreateStruct $ binaryFileCreateStruct ) { $ spiBinaryCreateStruct = new SPIBinaryFileCreateStruct ( ) ; $ spiBinaryCreateStruct -> id = $ this -> getPrefixedUri ( $ binaryFileCreateStruct -> id ) ; $ spiBinaryCreateStruct -> size = $ binaryFileCreateStruct -> size ; $ spiBinaryCreateStruct -> setInputStream ( $ binaryFileCreateStruct -> inputStream ) ; $ spiBinaryCreateStruct -> mimeType = $ binaryFileCreateStruct -> mimeType ; $ spiBinaryCreateStruct -> mtime = new \ DateTime ( ) ; return $ spiBinaryCreateStruct ; }
Generates SPI BinaryFileCreateStruct object from provided API BinaryFileCreateStruct object.

@param \eZ\Publish\Core\IO\Values\BinaryFileCreateStruct $binaryFileCreateStruct

@return \eZ\Publish\SPI\IO\BinaryFileCreateStruct
Generates SPI BinaryFileCreateStruct object from provided API BinaryFileCreateStruct object .