amplitude / experiment-php-server

Amplitude Experiment PHP Server SDK
MIT License
2 stars 4 forks source link

feat: AssignmentTrackingProvider used to track local evaluation assignment events #14

Closed tyiuhc closed 7 months ago

tyiuhc commented 7 months ago

Summary

marco-perrullo commented 7 months ago

On PR summary comment you mention that we could do Assignment::toJSONPayload or Assignment::toJSONString but this methods are not static so I guess that we should do something like:

$assignment = new Assignment($user,$variants,$apiKey);
$assignment->toJSONString();

Is this correct?

tyiuhc commented 7 months ago

On PR summary comment you mention that we could do Assignment::toJSONPayload or Assignment::toJSONString but this methods are not static so I guess that we should do something like:

$assignment = new Assignment($user,$variants,$apiKey);
$assignment->toJSONString();

Is this correct?

Yes, that is correct.

github-actions[bot] commented 7 months ago

:tada: This PR is included in version 0.5.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: