Skip to content

Type safe objects for each component #31

@g105b

Description

@g105b

Rather than returning an array for everything, return an object of the appropriate type.

For example:

UpdateQuery::set():AssignmentList

class UpdateStudentName extends UpdateQuery {
  public function set():AssignmentList {
    return new AssignmentList(
      "name",
      new Assignment("updatedAt", new NowDate()),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions