Skip to content

[8.5.x] Add getters to Atom\Link, Media\Content, and Media\Thumbnail - #9

Merged
MoamenEltouny merged 1 commit into
Pharaonic:8.5.xfrom
123mousab:feature/extension-getters-8.5.x
Oct 8, 2026
Merged

MoamenEltouny merged 1 commit into
Pharaonic:8.5.xfrom
123mousab:feature/extension-getters-8.5.x

Conversation

@123mousab

Copy link
Copy Markdown
Contributor

Summary

Adds getters to Atom\Link, Media\Content, and Media\Thumbnail, which previously only had setters. Each getter mirrors an existing setter and follows the convention of the other value objects (Image, Encoded, Creator, ...).

Content::isDefault() is already the setter, so its getter is named getIsDefault().

The generated XML is unchanged. The new tests assert on the getters directly, since this change adds no output; the existing XPath tests keep covering serialization and still pass.

As requested in the issue, there is one PR per version branch (8.0.x to 8.5.x). They contain the same commit; only the CHANGELOG.md placement differs per branch.

Refs #3

Type of change

  • Bug fix
  • New feature or extension
  • Refactoring (no behavior change)
  • Documentation
  • Breaking change

Checklist

  • The pull request targets the correct version branch (8.5.x).
  • Tests cover the change and composer check passes.
  • The source stays compatible with the branch's PHP version.
  • /docs is updated if the public API or usage changed.
  • CHANGELOG.md is updated under Unreleased.

These extensions only exposed setters, so their values could not be read
back once built. Add getters mirroring every setter, following the
convention of the other value objects. Content::isDefault() is already
the setter, so its getter is getIsDefault().

The generated XML is unchanged.

Refs Pharaonic#3
@MoamenEltouny
MoamenEltouny self-requested a review October 8, 2026 13:10
@MoamenEltouny
MoamenEltouny merged commit c306b3f into Pharaonic:8.5.x Oct 8, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants