seregazhuk\PinterestBot\Helpers\Cookies::getCookieData PHP Method

getCookieData() protected method

protected getCookieData ( $line ) : array
$line
return array
    protected function getCookieData($line)
    {
        // get tokens in an array
        $data = explode("\t", $line);
        // trim the tokens
        $data = array_map('trim', $data);
        return ['domain' => $data[0], 'flag' => $data[1], 'path' => $data[2], 'secure' => $data[3], 'name' => urldecode($data[5]), 'value' => urldecode($data[6]), 'expiration' => date('Y-m-d h:i:s', $data[4])];
    }