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