public function write($key, $content)
    {
        try {
            $this->getContainer()->uploadObject($key, $content);
        } catch (CreateUpdateError $updateError) {
            return false;
        }

        return Util\Size::fromContent($content);
    }
public function write($key, $content)
    {
        try {
            $this->getContainer()->uploadObject($key, $content);
        } catch (CreateUpdateError $updateError) {
            return false;
        }

        return Util\Size::fromContent($content);
    }
public function write ( $ key , $ content ) { try { $ this -> getContainer ( ) -> uploadObject ( $ key , $ content ) ; } catch ( CreateUpdateError $ updateError ) { return false ; } return Util \ Size :: fromContent ( $ content ) ; }
Writes the given content into the file.

@param string $key
@param string $content

@return int|bool The number of bytes that were written into the file
Writes the given content into the file .