Skip to content

Commit 9e6350e

Browse files
committed
Renamed propertyTitle to Key in Page entity; added property to map
1 parent b639906 commit 9e6350e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Entities/Page.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,11 @@ private function fillTitle(): void
156156
* @param $property
157157
* @return Page
158158
*/
159-
public function set(string $propertyTitle, Property $property): Page
159+
public function set(string $propertyKey, Property $property): Page
160160
{
161-
$property->setTitle($propertyTitle);
161+
$property->setTitle($propertyKey);
162162
$this->properties->add($property);
163+
$this->propertyMap[$propertyKey] = $property;
163164

164165
if ($property instanceof Title) {
165166
$this->title = $property->getPlainText();

0 commit comments

Comments
 (0)