Skip to content

Documentation error? #11

@spud

Description

@spud

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions