Make all constructor signatures multiline
[MAILPOET-3732]
This commit is contained in:
@@ -23,7 +23,9 @@ class DynamicSegmentFilterData {
|
||||
*/
|
||||
private $filterData;
|
||||
|
||||
public function __construct(array $filterData) {
|
||||
public function __construct(
|
||||
array $filterData
|
||||
) {
|
||||
$this->filterData = $filterData;
|
||||
}
|
||||
|
||||
|
@@ -30,7 +30,10 @@ class DynamicSegmentFilterEntity {
|
||||
*/
|
||||
private $filterData;
|
||||
|
||||
public function __construct(SegmentEntity $segment, DynamicSegmentFilterData $filterData) {
|
||||
public function __construct(
|
||||
SegmentEntity $segment,
|
||||
DynamicSegmentFilterData $filterData
|
||||
) {
|
||||
$this->segment = $segment;
|
||||
$this->filterData = $filterData;
|
||||
}
|
||||
|
@@ -32,7 +32,10 @@ class FeatureFlagEntity {
|
||||
* @param string $name
|
||||
* @param bool|null $value
|
||||
*/
|
||||
public function __construct($name, $value = null) {
|
||||
public function __construct(
|
||||
$name,
|
||||
$value = null
|
||||
) {
|
||||
$this->name = $name;
|
||||
$this->value = $value;
|
||||
}
|
||||
|
@@ -83,7 +83,9 @@ class FormEntity {
|
||||
*/
|
||||
private $styles;
|
||||
|
||||
public function __construct($name) {
|
||||
public function __construct(
|
||||
$name
|
||||
) {
|
||||
$this->name = $name;
|
||||
$this->status = self::STATUS_ENABLED;
|
||||
}
|
||||
|
@@ -54,7 +54,12 @@ class NewsletterLinkEntity {
|
||||
*/
|
||||
private $clicks;
|
||||
|
||||
public function __construct(NewsletterEntity $newsletter, SendingQueueEntity $queue, string $url, string $hash) {
|
||||
public function __construct(
|
||||
NewsletterEntity $newsletter,
|
||||
SendingQueueEntity $queue,
|
||||
string $url,
|
||||
string $hash
|
||||
) {
|
||||
$this->newsletter = $newsletter;
|
||||
$this->queue = $queue;
|
||||
$this->url = $url;
|
||||
|
@@ -37,7 +37,10 @@ class NewsletterOptionEntity {
|
||||
*/
|
||||
private $optionField;
|
||||
|
||||
public function __construct(NewsletterEntity $newsletter, NewsletterOptionFieldEntity $optionField) {
|
||||
public function __construct(
|
||||
NewsletterEntity $newsletter,
|
||||
NewsletterOptionFieldEntity $optionField
|
||||
) {
|
||||
$this->newsletter = $newsletter;
|
||||
$this->optionField = $optionField;
|
||||
}
|
||||
|
@@ -30,7 +30,10 @@ class NewsletterPostEntity {
|
||||
*/
|
||||
private $postId;
|
||||
|
||||
public function __construct(NewsletterEntity $newsletter, int $postId) {
|
||||
public function __construct(
|
||||
NewsletterEntity $newsletter,
|
||||
int $postId
|
||||
) {
|
||||
$this->newsletter = $newsletter;
|
||||
$this->postId = $postId;
|
||||
}
|
||||
|
@@ -30,7 +30,10 @@ class NewsletterSegmentEntity {
|
||||
*/
|
||||
private $segment;
|
||||
|
||||
public function __construct(NewsletterEntity $newsletter, SegmentEntity $segment) {
|
||||
public function __construct(
|
||||
NewsletterEntity $newsletter,
|
||||
SegmentEntity $segment
|
||||
) {
|
||||
$this->newsletter = $newsletter;
|
||||
$this->segment = $segment;
|
||||
}
|
||||
|
@@ -57,7 +57,9 @@ class NewsletterTemplateEntity {
|
||||
*/
|
||||
private $readonly = false;
|
||||
|
||||
public function __construct(string $name) {
|
||||
public function __construct(
|
||||
string $name
|
||||
) {
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
|
@@ -66,7 +66,11 @@ class SegmentEntity {
|
||||
*/
|
||||
private $averageEngagementScoreUpdatedAt;
|
||||
|
||||
public function __construct(string $name, string $type, string $description) {
|
||||
public function __construct(
|
||||
string $name,
|
||||
string $type,
|
||||
string $description
|
||||
) {
|
||||
$this->name = $name;
|
||||
$this->type = $type;
|
||||
$this->description = $description;
|
||||
|
@@ -41,7 +41,11 @@ class StatisticsNewsletterEntity {
|
||||
*/
|
||||
private $sentAt;
|
||||
|
||||
public function __construct(NewsletterEntity $newsletter, SendingQueueEntity $queue, SubscriberEntity $subscriber) {
|
||||
public function __construct(
|
||||
NewsletterEntity $newsletter,
|
||||
SendingQueueEntity $queue,
|
||||
SubscriberEntity $subscriber
|
||||
) {
|
||||
$this->newsletter = $newsletter;
|
||||
$this->queue = $queue;
|
||||
$this->subscriber = $subscriber;
|
||||
|
@@ -64,7 +64,14 @@ class StatisticsWooCommercePurchaseEntity {
|
||||
*/
|
||||
private $orderPriceTotal;
|
||||
|
||||
public function __construct(NewsletterEntity $newsletter, SendingQueueEntity $queue, StatisticsClickEntity $click, int $orderId, string $orderCurrency, float $orderPriceTotal ) {
|
||||
public function __construct(
|
||||
NewsletterEntity $newsletter,
|
||||
SendingQueueEntity $queue,
|
||||
StatisticsClickEntity $click,
|
||||
int $orderId,
|
||||
string $orderCurrency,
|
||||
float $orderPriceTotal
|
||||
) {
|
||||
$this->newsletter = $newsletter;
|
||||
$this->queue = $queue;
|
||||
$this->click = $click;
|
||||
|
@@ -30,7 +30,10 @@ class StatsNotificationEntity {
|
||||
*/
|
||||
private $task;
|
||||
|
||||
public function __construct(NewsletterEntity $newsletter, ScheduledTaskEntity $task) {
|
||||
public function __construct(
|
||||
NewsletterEntity $newsletter,
|
||||
ScheduledTaskEntity $task
|
||||
) {
|
||||
$this->newsletter = $newsletter;
|
||||
$this->task = $task;
|
||||
}
|
||||
|
@@ -26,7 +26,9 @@ class SubscriberIPEntity {
|
||||
*/
|
||||
private $createdAt;
|
||||
|
||||
public function __construct(string $ip) {
|
||||
public function __construct(
|
||||
string $ip
|
||||
) {
|
||||
$this->ip = $ip;
|
||||
$this->createdAt = new Carbon();
|
||||
}
|
||||
|
@@ -35,7 +35,9 @@ class UserAgentEntity {
|
||||
*/
|
||||
private $userAgent;
|
||||
|
||||
public function __construct(string $userAgent) {
|
||||
public function __construct(
|
||||
string $userAgent
|
||||
) {
|
||||
$this->setUserAgent($userAgent);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user