Skip to content

Commit a7276cb

Browse files
Fix naming
1 parent 01053dc commit a7276cb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/Console/ConfigureCmsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function handle(Client $ozuClient): int
4242
'label' => $collection->label(),
4343
'icon' => $collection->icon(),
4444
'hasPublicationState' => $collection->hasPublicationState(),
45-
'hasAutoDeployDateField' => $collection->hasAutoDeployDateField(),
45+
'autoDeployDateField' => $collection->autoDeployDateField(),
4646
'isCreatable' => $collection->isCreatable(),
4747
'isDeletable' => $collection->isDeletable(),
4848
'order' => $k+1,

src/OzuCms/OzuCollectionConfig.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function setHasPublicationState(bool $hasState = true): self
3838
* @param string|null $field
3939
* @return $this
4040
*/
41-
public function setHasAutoDeployDateField(?string $fieldKey = null): self
41+
public function setAutoDeployDateField(string $fieldKey): self
4242
{
4343
$this->autoDeployDateField = $fieldKey;
4444

@@ -74,7 +74,12 @@ public function hasPublicationState(): bool
7474
return $this->hasPublicationState;
7575
}
7676

77-
public function hasAutoDeployDateField(): ?string
77+
public function hasAutoDeployDateField(): bool
78+
{
79+
return !is_null($this->autoDeployDateField);
80+
}
81+
82+
public function autoDeployDateField(): ?string
7883
{
7984
return $this->autoDeployDateField;
8085
}

0 commit comments

Comments
 (0)