13
13
14
14
/**
15
15
* Function to retrieve persisted data for the example.
16
- * @param string $key
16
+ *
17
+ * @param string $key
17
18
* @return null|string
18
19
*/
19
20
function getValue ($ key )
@@ -28,8 +29,9 @@ function getValue($key)
28
29
29
30
/**
30
31
* Function to persist some data for the example.
31
- * @param string $key
32
- * @param string $value
32
+ *
33
+ * @param string $key
34
+ * @param string $value
33
35
*/
34
36
function setValue ($ key , $ value )
35
37
{
@@ -42,9 +44,9 @@ function setValue($key, $value)
42
44
* Function to authorize with Moneybird, this redirects to Moneybird login promt and retrieves authorization code
43
45
* to set up requests for oAuth tokens.
44
46
*
45
- * @param string $redirectUrl
46
- * @param string $clientId
47
- * @param string $clientSecret
47
+ * @param string $redirectUrl
48
+ * @param string $clientId
49
+ * @param string $clientSecret
48
50
*/
49
51
function authorize ($ redirectUrl , $ clientId , $ clientSecret )
50
52
{
@@ -58,11 +60,11 @@ function authorize($redirectUrl, $clientId, $clientSecret)
58
60
/**
59
61
* Function to connect to Moneybird, this creates the client and automatically retrieves oAuth tokens if needed.
60
62
*
61
- * @param string $redirectUrl
62
- * @param string $clientId
63
- * @param string $clientSecret
64
- *
63
+ * @param string $redirectUrl
64
+ * @param string $clientId
65
+ * @param string $clientSecret
65
66
* @return \Picqer\Financials\Moneybird\Connection
67
+ *
66
68
* @throws Exception
67
69
*/
68
70
function connect ($ redirectUrl , $ clientId , $ clientSecret )
0 commit comments