Skip to content

Commit c175396

Browse files
author
Aarjan Langereis
committed
Added itemReviewed to AggregateRating
1 parent 4d43922 commit c175396

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/ContextTypes/AggregateRating.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ class AggregateRating extends AbstractContext
1515
'bestRating' => null,
1616
'worstRating' => null,
1717
'ratingCount' => null,
18+
'itemReviewed' => Thing::class,
1819
];
1920
}

tests/ContextTypes/AggregateRatingTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ class AggregateRatingTest extends TestCase
1515
'bestRating' => 4.5,
1616
'worstRating' => 1,
1717
'ratingCount' => 4,
18+
'itemReviewed' => [
19+
'@type' => 'Thing',
20+
'name' => 'Fluff Hut',
21+
],
1822
];
1923

2024
/**

0 commit comments

Comments
 (0)