Skip to content

Conversation

@ictbeheer
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Jun 12, 2025

Coverage report for commit: 8aa2da7
File: coverage.xml

Cover ┌─────────────────────────┐ Freq.
   0% │ ███████████████████████ │ 78.6%
  10% │ ███░░░░░░░░░░░░░░░░░░░░ │  7.1%
  20% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  30% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  40% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  50% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  60% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  70% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  80% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  90% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
 100% │ █████░░░░░░░░░░░░░░░░░░ │ 14.3%
      └─────────────────────────┘
 *Legend:* █ = Current Distribution 
Summary - Lines: 11.71% | Methods: 6.12%
FilesLinesMethodsBranches
src/Attributes
   Meta.php--100.00%
   MetaPrefix.php--100.00%
   TaxonomyPrefix.php--100.00%
   Terms.php--100.00%
src/Contracts
   PostDataInterface.php100.00%100.00%100.00%
src/Enums
   PostStatus.php--100.00%
src
   ImageData.php--100.00%
   PostData.php14.62%3.57%100.00%
   TermData.php--100.00%
   UserData.php--100.00%
src/Mappers
   PostPrefixMapper.php--100.00%
   UserPrefixMapper.php--100.00%
src/Normalizers
   WPPostNormalizer.php--100.00%
src/Providers
   DataServiceProvider.php100.00%100.00%100.00%

🤖 comment via lucassabreu/comment-coverage-clover

@YvetteNikolov
Copy link
Contributor

Het enige wat ik nu nog mis, is een functie die checkt of de post een top-level post is. Dus geen children, en óók geen parent.

Bij een "Projecten" CPT heb je bijv. "Deelprojecten", maar ook "Deel-deelprojecten". Hier zou een $post->isTopLevelParent()of isRootParent() chill zijn.

return null;
}

return static::fromPost($parent);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wat als dit een ander post type is?

@ictbeheer ictbeheer force-pushed the feat/hierarchical-cpt-functions branch from a66da4c to b5557c2 Compare June 13, 2025 08:36
@ictbeheer ictbeheer merged commit eefbe38 into main Jul 8, 2025
5 checks passed
@ictbeheer ictbeheer deleted the feat/hierarchical-cpt-functions branch July 8, 2025 08:46
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.

6 participants