src/Transfer/Adapter/LocalDirectoryAdapter.php
public function currentCallback(CallbackIterator $iterator)
    {
        $clientFilename = $this->fileNames[$iterator->key()];
        $filename = $this->directory.DIRECTORY_SEPARATOR.$clientFilename;

        $fileObject = new ValueObject(file_get_contents($filename));
        $fileObject->setProperty('filename', $filename);
        $fileObject->setProperty('client_filename', $clientFilename);

        return $fileObject;
    }
public function currentCallback(CallbackIterator $iterator)
    {
        $clientFilename = $this->fileNames[$iterator->key()];
        $filename = $this->directory.DIRECTORY_SEPARATOR.$clientFilename;

        $fileObject = new ValueObject(file_get_contents($filename));
        $fileObject->setProperty('filename', $filename);
        $fileObject->setProperty('client_filename', $clientFilename);

        return $fileObject;
    }
public function currentCallback ( CallbackIterator $ iterator ) { $ clientFilename = $ this -> fileNames [ $ iterator -> key ( ) ] ; $ filename = $ this -> directory . DIRECTORY_SEPARATOR . $ clientFilename ; $ fileObject = new ValueObject ( file_get_contents ( $ filename ) ) ; $ fileObject -> setProperty ( 'filename' , $ filename ) ; $ fileObject -> setProperty ( 'client_filename' , $ clientFilename ) ; return $ fileObject ; }
Returns a file object.

@param CallbackIterator $iterator

@return ValueObject
Returns a file object .