private function save(array $messages)
    {
        fseek($this->fh, 0);
        fwrite($this->fh, json_encode($messages));
    }
private function save(array $messages)
    {
        fseek($this->fh, 0);
        fwrite($this->fh, json_encode($messages));
    }
private function save ( array $ messages ) { fseek ( $ this -> fh , 0 ) ; fwrite ( $ this -> fh , json_encode ( $ messages ) ) ; }
Save action messages to file
@param array $messages
Save action messages to file