We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 613d9c2 commit 6e67a4cCopy full SHA for 6e67a4c
src/Pixel/Pixel.php
@@ -8,6 +8,14 @@ final class Pixel
8
{
9
public string $id;
10
11
+ /**
12
+ * The reasons for the access token being nullable:
13
+ *
14
+ * 1. If you only want to use client side tracking you don't need an access token
15
+ * 2. It's not necessarily the case that the access token is present when you create the event,
16
+ * but first available when you want to send the event, hence you populate it later
17
+ * 3. There's the risk of having the access token being outputted in some user facing error message
18
+ */
19
public ?string $accessToken;
20
21
public function __construct(string $id, string $accessToken = null)
0 commit comments