PHP Class seregazhuk\PinterestBot\Helpers\Cookies

显示文件 Open project: seregazhuk/php-pinterest-bot Class Usage Examples

Protected Properties

Property Type Description
$cookies array

Public Methods

Method Description
all ( ) : array
fill ( string $file )
get ( $name ) : mixed
getToken ( ) : string | null

Protected Methods

Method Description
getCookieData ( $line ) : array
isHttp ( $line ) : boolean
isValid ( $line ) : boolean
parseCookie ( $line ) : array | boolean

Method Details

all() public method

public all ( ) : array
return array

fill() public method

public fill ( string $file )
$file string

get() public method

public get ( $name ) : mixed
$name
return mixed

getCookieData() protected method

protected getCookieData ( $line ) : array
$line
return array

getToken() public method

public getToken ( ) : string | null
return string | null

isHttp() protected method

protected isHttp ( $line ) : boolean
$line
return boolean

isValid() protected method

protected isValid ( $line ) : boolean
$line
return boolean

parseCookie() protected method

protected parseCookie ( $line ) : array | boolean
$line
return array | boolean

Property Details

$cookies protected_oe property

protected array $cookies
return array