public function setContent($content, $metadata = array())
    {
        $this->content = $content;
        $this->setMetadata($metadata);

        return $this->size = $this->filesystem->write($this->key, $this->content, true);
    }
public function setContent($content, $metadata = array())
    {
        $this->content = $content;
        $this->setMetadata($metadata);

        return $this->size = $this->filesystem->write($this->key, $this->content, true);
    }
public function setContent ( $ content , $ metadata = array ( ) ) { $ this -> content = $ content ; $ this -> setMetadata ( $ metadata ) ; return $ this -> size = $ this -> filesystem -> write ( $ this -> key , $ this -> content , true ) ; }
Sets the content.

@param string $content
@param array  $metadata optional metadata which should be send when write

@return int The number of bytes that were written into the file, or
FALSE on failure
Sets the content .