Token

Class \Lib\Token

Methods

getInstance

<?php public static function \Lib\Token::getInstance()

Description
Gets a unique instance of Token class.

create

<?php public function create($data)

Description
Associates specified data to the newly generated token.
Returns generated token.

update

<?php public function update($token, $data)

Description
Update data associated with specified token.

read

<?php public function read($token, $field = null)

Description
Returns all data associated with the specified token.
If field parameter is specified, function will only return the specified field.

delete

<?php public function delete($token)

Description
Delete specified token.