File tree 18 files changed +171
-56
lines changed
18 files changed +171
-56
lines changed Original file line number Diff line number Diff line change 13
13
class AddOperation implements FieldOperation
14
14
{
15
15
/**
16
- * @var - Array with objects to add.
16
+ * Array with objects to add.
17
+ *
18
+ * @var array
17
19
*/
18
20
private $ objects ;
19
21
Original file line number Diff line number Diff line change 13
13
class AddUniqueOperation implements FieldOperation
14
14
{
15
15
/**
16
- * @var - Array containing objects to add.
16
+ * Array containing objects to add.
17
+ *
18
+ * @var array
17
19
*/
18
20
private $ objects ;
19
21
Original file line number Diff line number Diff line change 12
12
class IncrementOperation implements FieldOperation
13
13
{
14
14
/**
15
- * @var int - Amount to increment by.
15
+ * Amount to increment by.
16
+ *
17
+ * @var int
16
18
*/
17
19
private $ value ;
18
20
Original file line number Diff line number Diff line change 14
14
class ParseRelationOperation implements FieldOperation
15
15
{
16
16
/**
17
- * @var string - The className of the target objects.
17
+ * The className of the target objects.
18
+ *
19
+ * @var string
18
20
*/
19
21
private $ targetClassName ;
22
+
20
23
/**
21
- * @var array - Array of objects to add to this relation.
24
+ * Array of objects to add to this relation.
25
+ *
26
+ * @var array
22
27
*/
23
28
private $ relationsToAdd = [];
29
+
24
30
/**
25
- * @var array - Array of objects to remove from this relation.
31
+ * Array of objects to remove from this relation.
32
+ *
33
+ * @var array
26
34
*/
27
35
private $ relationsToRemove = [];
28
36
Original file line number Diff line number Diff line change 15
15
class RemoveOperation implements FieldOperation
16
16
{
17
17
/**
18
- * @var - Array with objects to remove.
18
+ * Array with objects to remove.
19
+ *
20
+ * @var array
19
21
*/
20
22
private $ objects ;
21
23
Original file line number Diff line number Diff line change 12
12
class SetOperation implements FieldOperation
13
13
{
14
14
/**
15
- * @var - Value to set for this operation.
15
+ * Value to set for this operation.
16
+ *
17
+ * @var mixed
16
18
*/
17
19
private $ value ;
18
20
19
21
/**
20
- * @var - If the value should be forced as object.
22
+ * If the value should be forced as object.
23
+ *
24
+ * @var bool
21
25
*/
22
26
private $ isAssociativeArray ;
23
27
Original file line number Diff line number Diff line change @@ -19,32 +19,32 @@ class ParseACL implements Encodable
19
19
const PUBLIC_KEY = '* ' ;
20
20
21
21
/**
22
- * @var array -
22
+ * @var array
23
23
*/
24
24
private $ permissionsById = [];
25
25
26
26
/**
27
- * @var bool -
27
+ * @var bool
28
28
*/
29
29
private $ shared = false ;
30
30
31
31
/**
32
- * @var ParseUser -
32
+ * @var ParseUser
33
33
*/
34
34
private static $ lastCurrentUser = null ;
35
35
36
36
/**
37
- * @var ParseACL -
37
+ * @var ParseACL
38
38
*/
39
39
private static $ defaultACLWithCurrentUser = null ;
40
40
41
41
/**
42
- * @var ParseACL -
42
+ * @var ParseACL
43
43
*/
44
44
private static $ defaultACL = null ;
45
45
46
46
/**
47
- * @var bool -
47
+ * @var bool
48
48
*/
49
49
private static $ defaultACLUsesCurrentUser = false ;
50
50
Original file line number Diff line number Diff line change @@ -43,9 +43,11 @@ class ParseAnalytics
43
43
public static function track ($ name , $ dimensions = [])
44
44
{
45
45
$ name = trim ($ name );
46
+
46
47
if (strlen ($ name ) === 0 ) {
47
48
throw new Exception ('A name for the custom event must be provided. ' );
48
49
}
50
+
49
51
foreach ($ dimensions as $ key => $ value ) {
50
52
if (!is_string ($ key ) || !is_string ($ value )) {
51
53
throw new Exception ('Dimensions expected string keys and values. ' );
Original file line number Diff line number Diff line change 10
10
class ParseBytes implements Internal \Encodable
11
11
{
12
12
/**
13
- * @var - byte array
13
+ * Byte array.
14
+ *
15
+ * @var array
14
16
*/
15
17
private $ byteArray ;
16
18
Original file line number Diff line number Diff line change @@ -17,37 +17,51 @@ final class ParseClient
17
17
const HOST_NAME = 'https://api.parse.com ' ;
18
18
19
19
/**
20
- * @var - String for applicationId.
20
+ * The application id.
21
+ *
22
+ * @var string
21
23
*/
22
24
private static $ applicationId ;
23
25
24
26
/**
25
- * @var - String for REST API Key.
27
+ * The REST API Key.
28
+ *
29
+ * @var string
26
30
*/
27
31
private static $ restKey ;
28
32
29
33
/**
30
- * @var - String for Master Key.
34
+ * The Master Key.
35
+ *
36
+ * @var string
31
37
*/
32
38
private static $ masterKey ;
33
39
34
40
/**
35
- * @var - Boolean for Enable/Disable curl exceptions.
41
+ * Enable/Disable curl exceptions.
42
+ *
43
+ * @var bool
36
44
*/
37
45
private static $ enableCurlExceptions ;
38
46
39
47
/**
40
- * @var ParseStorageInterface Object for managing persistence
48
+ * The object for managing persistence.
49
+ *
50
+ * @var ParseStorageInterface
41
51
*/
42
52
private static $ storage ;
43
53
44
54
/**
45
- * @var - Boolean for enabling revocable sessions.
55
+ * Are revocable sessions enabled?
56
+ *
57
+ * @var bool
46
58
*/
47
59
private static $ forceRevocableSession = false ;
48
60
49
61
/**
50
62
* Constant for version string to include with requests.
63
+ *
64
+ * @var string
51
65
*/
52
66
const VERSION_STRING = 'php1.1.0 ' ;
53
67
Original file line number Diff line number Diff line change @@ -25,17 +25,13 @@ public function get($key)
25
25
if (isset ($ this ->currentConfig [$ key ])) {
26
26
return $ this ->currentConfig [$ key ];
27
27
}
28
-
29
- return ;
30
28
}
31
29
32
30
public function escape ($ key )
33
31
{
34
32
if (isset ($ this ->currentConfig [$ key ])) {
35
33
return htmlentities ($ this ->currentConfig [$ key ]);
36
34
}
37
-
38
- return ;
39
35
}
40
36
41
37
protected function setConfig ($ config )
Original file line number Diff line number Diff line change 10
10
class ParseFile implements \Parse \Internal \Encodable
11
11
{
12
12
/**
13
- * @var - Filename
13
+ * The filename.
14
+ *
15
+ * @var string
14
16
*/
15
17
private $ name ;
18
+
16
19
/**
17
- * @var - URL of File data stored on Parse.
20
+ * The URL of file data stored on Parse.
21
+ *
22
+ * @var string
18
23
*/
19
24
private $ url ;
25
+
20
26
/**
21
- * @var - Data
27
+ * The data.
28
+ *
29
+ * @var string
22
30
*/
23
31
private $ data ;
32
+
24
33
/**
25
- * @var - Mime type
34
+ * The mime type.
35
+ *
36
+ * @var string
26
37
*/
27
38
private $ mimeType ;
28
39
Original file line number Diff line number Diff line change 10
10
class ParseGeoPoint implements \Parse \Internal \Encodable
11
11
{
12
12
/**
13
- * @var - Float value for latitude.
13
+ * The latitude.
14
+ *
15
+ * @var float
14
16
*/
15
17
private $ latitude ;
18
+
16
19
/**
17
- * @var - Float value for longitude.
20
+ * The longitude.
21
+ *
22
+ * @var float
18
23
*/
19
24
private $ longitude ;
20
25
Original file line number Diff line number Diff line change 20
20
class ParseObject implements Encodable
21
21
{
22
22
/**
23
- * @var array - Data as it exists on the server.
23
+ * Data as it exists on the server.
24
+ *
25
+ * @var array
24
26
*/
25
27
protected $ serverData ;
28
+
26
29
/**
27
- * @var array - Set of unsaved operations.
30
+ * Set of unsaved operations.
31
+ *
32
+ * @var array
28
33
*/
29
34
protected $ operationSet ;
35
+
30
36
/**
31
- * @var array - Estimated value of applying operationSet to serverData.
37
+ * Estimated value of applying operationSet to serverData.
38
+ *
39
+ * @var array
32
40
*/
33
41
private $ estimatedData ;
42
+
34
43
/**
35
- * @var array - Determine if data available for a given key or not.
44
+ * Determine if data available for a given key or not.
45
+ *
46
+ * @var array
36
47
*/
37
48
private $ dataAvailability ;
49
+
38
50
/**
39
- * @var - Class Name for data on Parse.
51
+ * Class name for data on Parse.
52
+ *
53
+ * @var string
40
54
*/
41
55
private $ className ;
56
+
42
57
/**
43
- * @var string - Unique identifier on Parse.
58
+ * Unique identifier on Parse.
59
+ *
60
+ * @var string
44
61
*/
45
62
private $ objectId ;
63
+
46
64
/**
47
- * @var \DateTime - Timestamp when object was created.
65
+ * Timestamp when object was created.
66
+ *
67
+ * @var \DateTime
48
68
*/
49
69
private $ createdAt ;
70
+
50
71
/**
51
- * @var \DateTime - Timestamp when object was last updated.
72
+ * Timestamp when object was last updated.
73
+ *
74
+ * @var \DateTime
52
75
*/
53
76
private $ updatedAt ;
77
+
54
78
/**
55
- * @var bool - Whether the object has been fully fetched from Parse.
79
+ * Whether the object has been fully fetched from Parse.
80
+ *
81
+ * @var bool
56
82
*/
57
83
private $ hasBeenFetched ;
58
84
59
85
/**
60
- * @var array - Holds the registered subclasses and Parse class names.
86
+ * Holds the registered subclasses and Parse class names.
87
+ *
88
+ * @var array
61
89
*/
62
90
private static $ registeredSubclasses = [];
63
91
You can’t perform that action at this time.
0 commit comments