Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation error? #11

Open
spud opened this issue Sep 14, 2023 · 0 comments
Open

Documentation error? #11

spud opened this issue Sep 14, 2023 · 0 comments

Comments

@spud
Copy link

spud commented Sep 14, 2023

Just glancing at this project for possible future use, and noticed what seems like an issue with the documentation:

// Either get the Code object and read it's code and/or value
$type = $product->getNotificationType();
$code = $code->getCode(); // "03"
$value = $code->getValue(); // "Notification confirmed on publication"

I assume the second line of code should read:
$code = $type->getCode();

Since $code was not defined prior to this line. I haven't dug into the code itself, but that strikes me as probably incorrect.

Apologies if I've misunderstood!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant