Skip to content

DocumentAST public properties #986

@spawnia

Description

@spawnia

From @JasonTheAdams comment #974 (review)

The only thing that stands out to me is the usage of the DocumentAST class. It has three public array properties, and two setters. For the sake of protecting the integrity of those array elements, I would suggest making getters, setters, and isset methods for the three properties, and then making those properties private. This also allows you to reconcile the exceptions. You really don't want other code modifying the AST directly without a method abstraction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionRequires input from multiple people

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions