@@ -32,7 +32,7 @@ class ProcessSchedule
3232
3333 #[ORM \Column(length: 255 )]
3434 #[IsValidProcessCode]
35- private ? string $ process = null ;
35+ private string $ process ;
3636
3737 #[ORM \Column(length: 6 )]
3838 private ProcessScheduleType $ type ;
@@ -43,11 +43,14 @@ class ProcessSchedule
4343 #[Assert \When(
4444 expression: 'this.getType().value == "every" ' , constraints: [new EveryExpression ()]
4545 )]
46- private ? string $ expression = null ;
46+ private string $ expression ;
4747
4848 #[ORM \Column(type: Types::TEXT , nullable: true )]
4949 private ?string $ input = null ;
5050
51+ /**
52+ * @var string|array<string|int, mixed>
53+ */
5154 #[ORM \Column(type: Types::JSON )]
5255 private string |array $ context = [];
5356
@@ -68,11 +71,17 @@ public function setProcess(string $process): static
6871 return $ this ;
6972 }
7073
74+ /**
75+ * @return array<string|int, mixed>
76+ */
7177 public function getContext (): array
7278 {
7379 return \is_array ($ this ->context ) ? $ this ->context : json_decode ($ this ->context );
7480 }
7581
82+ /**
83+ * @param array<string|int, mixed> $context
84+ */
7685 public function setContext (array $ context ): void
7786 {
7887 $ this ->context = $ context ;
@@ -100,7 +109,7 @@ public function getExpression(): ?string
100109 return $ this ->expression ;
101110 }
102111
103- public function setExpression (? string $ expression ): self
112+ public function setExpression (string $ expression ): self
104113 {
105114 $ this ->expression = $ expression ;
106115
0 commit comments