private function hydrate(array $file)
    {
        $entity = new FileEntity();
        $entity->setType($file['type'])
               ->setName($file['name'])
               ->setTmpName($file['tmp_name'])
               ->setSize($file['size'])
               ->setError($file['error']);

        return $entity;
    }
private function hydrate(array $file)
    {
        $entity = new FileEntity();
        $entity->setType($file['type'])
               ->setName($file['name'])
               ->setTmpName($file['tmp_name'])
               ->setSize($file['size'])
               ->setError($file['error']);

        return $entity;
    }
private function hydrate ( array $ file ) { $ entity = new FileEntity ( ) ; $ entity -> setType ( $ file [ 'type' ] ) -> setName ( $ file [ 'name' ] ) -> setTmpName ( $ file [ 'tmp_name' ] ) -> setSize ( $ file [ 'size' ] ) -> setError ( $ file [ 'error' ] ) ; return $ entity ; }
Hydrates a single file

@param array $file
@return mixed
Hydrates a single file