Skip to content

Commit cef1226

Browse files
committed
Merge branch 'feature/create-timestampable-trait' into feature/add-database-attributes
2 parents d59324c + b32890e commit cef1226

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Entities/Blocks/Block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function fillFromRaw(): void
6565
$this->fillHasChildren();
6666
$this->fillParentProperties();
6767
$this->fillArchivedProperties();
68-
$this->fillTimestampableProperties();
68+
$this->fillTimestampableAttributes();
6969
}
7070

7171
private function fillType(): void

src/Entities/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private function fillFromRaw()
109109
$this->fillDatabaseUrl();
110110
$this->fillParentProperties();
111111
$this->fillArchivedProperties();
112-
$this->fillTimestampableProperties();
112+
$this->fillTimestampableAttributes();
113113
}
114114

115115
private function fillTitle(): void

src/Entities/Page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function fillFromRaw(): void
119119
$this->fillCover();
120120
$this->fillParentProperties();
121121
$this->fillArchivedProperties();
122-
$this->fillTimestampableProperties();
122+
$this->fillTimestampableAttributes();
123123
}
124124

125125
/**

src/Traits/HasTimestamps.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,36 @@ trait HasTimestamps
3737
*/
3838
protected User $lastEditedBy;
3939

40-
protected function fillTimestampableProperties(): void
40+
protected function fillTimestampableAttributes(): void
4141
{
4242
$this->fillCreatedTime();
4343
$this->fillLastEditedTime();
4444
$this->fillCreatedBy();
4545
$this->fillLastEditedBy();
4646
}
4747

48-
protected function fillCreatedTime(): void
48+
private function fillCreatedTime(): void
4949
{
5050
if (Arr::exists($this->responseData, 'created_time')) {
5151
$this->createdTime = new Carbon($this->responseData['created_time']);
5252
}
5353
}
5454

55-
protected function fillLastEditedTime(): void
55+
private function fillLastEditedTime(): void
5656
{
5757
if (Arr::exists($this->responseData, 'last_edited_time')) {
5858
$this->lastEditedTime = new Carbon($this->responseData['last_edited_time']);
5959
}
6060
}
6161

62-
protected function fillCreatedBy(): void
62+
private function fillCreatedBy(): void
6363
{
6464
if (Arr::exists($this->responseData, 'created_by')) {
6565
$this->createdBy = new User($this->responseData['created_by']);
6666
}
6767
}
6868

69-
protected function fillLastEditedBy(): void
69+
private function fillLastEditedBy(): void
7070
{
7171
if (Arr::exists($this->responseData, 'last_edited_by')) {
7272
$this->lastEditedBy = new User($this->responseData['last_edited_by']);

0 commit comments

Comments
 (0)