src/Sdk/JsApiTicket.php
private function saveTicket($ticket, $expire)
    {
        $data   = ['ticket' => $ticket, 'expire' => intval($expire), 'time' => time()];
        return ($this->getFileSystem()->put($this->getTicketFilePath(), serialize($data), true) > 0);
    }
private function saveTicket($ticket, $expire)
    {
        $data   = ['ticket' => $ticket, 'expire' => intval($expire), 'time' => time()];
        return ($this->getFileSystem()->put($this->getTicketFilePath(), serialize($data), true) > 0);
    }
private function saveTicket ( $ ticket , $ expire ) { $ data = [ 'ticket' => $ ticket , 'expire' => intval ( $ expire ) , 'time' => time ( ) ] ; return ( $ this -> getFileSystem ( ) -> put ( $ this -> getTicketFilePath ( ) , serialize ( $ data ) , true ) > 0 ) ; }
save js api ticket to file

@param string $ticket
@param int $expire
@return bool
save js api ticket to file