File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public function handle(Client $ozuClient): int
42
42
'label ' => $ collection ->label (),
43
43
'icon ' => $ collection ->icon (),
44
44
'hasPublicationState ' => $ collection ->hasPublicationState (),
45
- 'hasAutoDeployDateField ' => $ collection ->hasAutoDeployDateField (),
45
+ 'autoDeployDateField ' => $ collection ->autoDeployDateField (),
46
46
'isCreatable ' => $ collection ->isCreatable (),
47
47
'isDeletable ' => $ collection ->isDeletable (),
48
48
'order ' => $ k +1 ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function setHasPublicationState(bool $hasState = true): self
38
38
* @param string|null $field
39
39
* @return $this
40
40
*/
41
- public function setHasAutoDeployDateField (? string $ fieldKey = null ): self
41
+ public function setAutoDeployDateField ( string $ fieldKey ): self
42
42
{
43
43
$ this ->autoDeployDateField = $ fieldKey ;
44
44
@@ -74,7 +74,12 @@ public function hasPublicationState(): bool
74
74
return $ this ->hasPublicationState ;
75
75
}
76
76
77
- public function hasAutoDeployDateField (): ?string
77
+ public function hasAutoDeployDateField (): bool
78
+ {
79
+ return !is_null ($ this ->autoDeployDateField );
80
+ }
81
+
82
+ public function autoDeployDateField (): ?string
78
83
{
79
84
return $ this ->autoDeployDateField ;
80
85
}
You can’t perform that action at this time.
0 commit comments