public function persistPoll()
    {
        $data = '<?php return '.var_export($this->poll, true).';';
        file_put_contents($this->directory . '/poll.php', $data);
    }
public function persistPoll()
    {
        $data = '<?php return '.var_export($this->poll, true).';';
        file_put_contents($this->directory . '/poll.php', $data);
    }
public function persistPoll ( ) { $ data = '<?php return ' . var_export ( $ this -> poll , true ) . ';' ; file_put_contents ( $ this -> directory . '/poll.php' , $ data ) ; }
Persist poll data
Persist poll data