public function write($content)
    {
        if ($this->isReadable()) {
            throw new \RuntimeException("Cannot write to a readable message");
        }

        $this->writable = true;
        $content = trim($content);
        fwrite($this->resource, $content . "\n");
    }
public function write($content)
    {
        if ($this->isReadable()) {
            throw new \RuntimeException("Cannot write to a readable message");
        }

        $this->writable = true;
        $content = trim($content);
        fwrite($this->resource, $content . "\n");
    }
public function write ( $ content ) { if ( $ this -> isReadable ( ) ) { throw new \ RuntimeException ( "Cannot write to a readable message" ) ; } $ this -> writable = true ; $ content = trim ( $ content ) ; fwrite ( $ this -> resource , $ content . "\n" ) ; }
Write content to the stream.

@param string $content
@return void
Write content to the stream .