Skip to content

Commit b003df6

Browse files
committed
ISSUE-345: sendstart in metadata
1 parent 4476452 commit b003df6

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/Domain/Model/Messaging/Message/MessageMetadata.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,23 @@ class MessageMetadata
2828
#[ORM\Column(type: 'datetime', nullable: true)]
2929
private ?DateTime $sent;
3030

31+
#[ORM\Column(name: 'sendstart', type: 'datetime', nullable: true)]
32+
private ?DateTime $sendStart;
33+
3134
public function __construct(
3235
?string $status = null,
3336
int $bounceCount = 0,
3437
?DateTime $entered = null,
3538
?DateTime $sent = null,
39+
?DateTime $sendStart = null,
3640
) {
3741
$this->status = $status;
3842
$this->processed = false;
3943
$this->viewed = 0;
4044
$this->bounceCount = $bounceCount;
4145
$this->entered = $entered ?? new DateTime();
4246
$this->sent = $sent;
47+
$this->sendStart = $sendStart;
4348
}
4449

4550
public function getStatus(): ?string
@@ -107,4 +112,15 @@ public function setSent(?DateTime $sent): self
107112
$this->sent = $sent;
108113
return $this;
109114
}
115+
116+
public function getSendStart(): ?DateTime
117+
{
118+
return $this->sendStart;
119+
}
120+
121+
public function setSendStart(?DateTime $sendStart): self
122+
{
123+
$this->sendStart = $sendStart;
124+
return $this;
125+
}
110126
}

src/Domain/Model/Messaging/Message/MessageOptions.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ class MessageOptions
2222
#[ORM\Column(name: 'userselection', type: 'text', nullable: true)]
2323
private ?string $userSelection;
2424

25-
#[ORM\Column(name: 'sendstart', type: 'datetime', nullable: true)]
26-
private ?DateTime $sendStart;
27-
2825
#[ORM\Column(name: 'rsstemplate', type: 'string', length: 100, nullable: true)]
2926
private ?string $rssTemplate;
3027

@@ -33,14 +30,12 @@ public function __construct(
3330
string $toField = '',
3431
string $replyTo = '',
3532
?string $userSelection = null,
36-
?DateTime $sendStart = null,
3733
?string $rssTemplate = null
3834
) {
3935
$this->fromField = $fromField;
4036
$this->toField = $toField;
4137
$this->replyTo = $replyTo;
4238
$this->userSelection = $userSelection;
43-
$this->sendStart = $sendStart;
4439
$this->rssTemplate = $rssTemplate;
4540
}
4641

@@ -64,11 +59,6 @@ public function getUserSelection(): ?string
6459
return $this->userSelection;
6560
}
6661

67-
public function getSendStart(): ?DateTime
68-
{
69-
return $this->sendStart;
70-
}
71-
7262
public function getRssTemplate(): ?string
7363
{
7464
return $this->rssTemplate;
@@ -98,12 +88,6 @@ public function setUserSelection(?string $userSelection): self
9888
return $this;
9989
}
10090

101-
public function setSendStart(?DateTime $sendStart): self
102-
{
103-
$this->sendStart = $sendStart;
104-
return $this;
105-
}
106-
10791
public function setRssTemplate(?string $rssTemplate): self
10892
{
10993
$this->rssTemplate = $rssTemplate;

0 commit comments

Comments
 (0)