/** * Get tokens by type and user id * * @param string $type * @param integer $user_id * * @return Access_token */ public static function getByTypeAndUserId($type, $user_id) { $access = new Access_token(); return $access->get_one_by_type($type, $user_id); }