Add public keyword to methods

[MAILPOET-2413]
This commit is contained in:
Amine Ben hammou
2019-12-26 12:56:49 +01:00
committed by wxa
parent ec409042d5
commit 43df66d162
823 changed files with 4440 additions and 4440 deletions

View File

@ -143,7 +143,7 @@ class NewsletterEntity {
*/
private $queues;
function __construct() {
public function __construct() {
$this->newsletter_segments = new ArrayCollection();
$this->options = new ArrayCollection();
$this->queues = new ArrayCollection();
@ -152,161 +152,161 @@ class NewsletterEntity {
/**
* @return string|null
*/
function getHash() {
public function getHash() {
return $this->hash;
}
/**
* @param string|null $hash
*/
function setHash($hash) {
public function setHash($hash) {
$this->hash = $hash;
}
/**
* @return string
*/
function getSubject() {
public function getSubject() {
return $this->subject;
}
/**
* @param string $subject
*/
function setSubject($subject) {
public function setSubject($subject) {
$this->subject = $subject;
}
/**
* @return string
*/
function getType() {
public function getType() {
return $this->type;
}
/**
* @param string $type
*/
function setType($type) {
public function setType($type) {
$this->type = $type;
}
/**
* @return string
*/
function getSenderAddress() {
public function getSenderAddress() {
return $this->sender_address;
}
/**
* @param string $sender_address
*/
function setSenderAddress($sender_address) {
public function setSenderAddress($sender_address) {
$this->sender_address = $sender_address;
}
/**
* @return string
*/
function getSenderName() {
public function getSenderName() {
return $this->sender_name;
}
/**
* @param string $sender_name
*/
function setSenderName($sender_name) {
public function setSenderName($sender_name) {
$this->sender_name = $sender_name;
}
/**
* @return string
*/
function getStatus() {
public function getStatus() {
return $this->status;
}
/**
* @param string $status
*/
function setStatus($status) {
public function setStatus($status) {
$this->status = $status;
}
/**
* @return string
*/
function getReplyToAddress() {
public function getReplyToAddress() {
return $this->reply_to_address;
}
/**
* @param string $reply_to_address
*/
function setReplyToAddress($reply_to_address) {
public function setReplyToAddress($reply_to_address) {
$this->reply_to_address = $reply_to_address;
}
/**
* @return string
*/
function getReplyToName() {
public function getReplyToName() {
return $this->reply_to_name;
}
/**
* @param string $reply_to_name
*/
function setReplyToName($reply_to_name) {
public function setReplyToName($reply_to_name) {
$this->reply_to_name = $reply_to_name;
}
/**
* @return string
*/
function getPreheader() {
public function getPreheader() {
return $this->preheader;
}
/**
* @param string $preheader
*/
function setPreheader($preheader) {
public function setPreheader($preheader) {
$this->preheader = $preheader;
}
/**
* @return array|null
*/
function getBody() {
public function getBody() {
return $this->body;
}
/**
* @param array|null $body
*/
function setBody($body) {
public function setBody($body) {
$this->body = $body;
}
/**
* @return DateTimeInterface|null
*/
function getSentAt() {
public function getSentAt() {
return $this->sent_at;
}
/**
* @param DateTimeInterface|null $sent_at
*/
function setSentAt($sent_at) {
public function setSentAt($sent_at) {
$this->sent_at = $sent_at;
}
/**
* @return string|null
*/
function getUnsubscribeToken() {
public function getUnsubscribeToken() {
return $this->unsubscribe_token;
}
@ -328,14 +328,14 @@ class NewsletterEntity {
/**
* @param string|null $unsubscribe_token
*/
function setUnsubscribeToken($unsubscribe_token) {
public function setUnsubscribeToken($unsubscribe_token) {
$this->unsubscribe_token = $unsubscribe_token;
}
/**
* @return NewsletterEntity|null
*/
function getParent() {
public function getParent() {
try {
if ($this->parent && $this->parent->getId()) {
return $this->parent;
@ -349,35 +349,35 @@ class NewsletterEntity {
/**
* @param NewsletterEntity|null $parent
*/
function setParent($parent) {
public function setParent($parent) {
$this->parent = $parent;
}
/**
* @return NewsletterSegmentEntity[]|ArrayCollection
*/
function getNewsletterSegments() {
public function getNewsletterSegments() {
return $this->newsletter_segments;
}
/**
* @return NewsletterOptionEntity[]|ArrayCollection
*/
function getOptions() {
public function getOptions() {
return $this->options;
}
/**
* @return SendingQueueEntity[]|ArrayCollection
*/
function getQueues() {
public function getQueues() {
return $this->queues;
}
/**
* @return SendingQueueEntity|null
*/
function getLatestQueue() {
public function getLatestQueue() {
$criteria = new Criteria();
$criteria->orderBy(['id' => Criteria::DESC]);
$criteria->setMaxResults(1);

View File

@ -83,7 +83,7 @@ class NewsletterLinkEntity {
/**
* @return int
*/
function getTotalClicksCount() {
public function getTotalClicksCount() {
return $this->clicks->count();
}
}

View File

@ -37,42 +37,42 @@ class NewsletterOptionEntity {
/**
* @return string|null
*/
function getValue() {
public function getValue() {
return $this->value;
}
/**
* @param string|null $value
*/
function setValue($value) {
public function setValue($value) {
$this->value = $value;
}
/**
* @return NewsletterEntity
*/
function getNewsletter() {
public function getNewsletter() {
return $this->newsletter;
}
/**
* @param NewsletterEntity $newsletter
*/
function setNewsletter($newsletter) {
public function setNewsletter($newsletter) {
$this->newsletter = $newsletter;
}
/**
* @return NewsletterOptionFieldEntity
*/
function getOptionField() {
public function getOptionField() {
return $this->option_field;
}
/**
* @param NewsletterOptionFieldEntity $option_field
*/
function setOptionField($option_field) {
public function setOptionField($option_field) {
$this->option_field = $option_field;
}
}

View File

@ -34,28 +34,28 @@ class NewsletterOptionFieldEntity {
/**
* @return string
*/
function getName() {
public function getName() {
return $this->name;
}
/**
* @param string $name
*/
function setName($name) {
public function setName($name) {
$this->name = $name;
}
/**
* @return string
*/
function getNewsletterType() {
public function getNewsletterType() {
return $this->newsletter_type;
}
/**
* @param string $newsletter_type
*/
function setNewsletterType($newsletter_type) {
public function setNewsletterType($newsletter_type) {
$this->newsletter_type = $newsletter_type;
}
}

View File

@ -31,22 +31,22 @@ class NewsletterSegmentEntity {
/**
* @return NewsletterEntity
*/
function getNewsletter() {
public function getNewsletter() {
return $this->newsletter;
}
function setNewsletter(NewsletterEntity $newsletter) {
public function setNewsletter(NewsletterEntity $newsletter) {
$this->newsletter = $newsletter;
}
/**
* @return SegmentEntity
*/
function getSegment() {
public function getSegment() {
return $this->segment;
}
function setSegment(SegmentEntity $segment) {
public function setSegment(SegmentEntity $segment) {
$this->segment = $segment;
}
}

View File

@ -66,84 +66,84 @@ class ScheduledTaskEntity {
/**
* @return string|null
*/
function getType() {
public function getType() {
return $this->type;
}
/**
* @param string|null $type
*/
function setType($type) {
public function setType($type) {
$this->type = $type;
}
/**
* @return string|null
*/
function getStatus() {
public function getStatus() {
return $this->status;
}
/**
* @param string|null $status
*/
function setStatus($status) {
public function setStatus($status) {
$this->status = $status;
}
/**
* @return int
*/
function getPriority() {
public function getPriority() {
return $this->priority;
}
/**
* @param int $priority
*/
function setPriority($priority) {
public function setPriority($priority) {
$this->priority = $priority;
}
/**
* @return DateTimeInterface|null
*/
function getScheduledAt() {
public function getScheduledAt() {
return $this->scheduled_at;
}
/**
* @param DateTimeInterface|null $scheduled_at
*/
function setScheduledAt($scheduled_at) {
public function setScheduledAt($scheduled_at) {
$this->scheduled_at = $scheduled_at;
}
/**
* @return DateTimeInterface|null
*/
function getProcessedAt() {
public function getProcessedAt() {
return $this->processed_at;
}
/**
* @param DateTimeInterface|null $processed_at
*/
function setProcessedAt($processed_at) {
public function setProcessedAt($processed_at) {
$this->processed_at = $processed_at;
}
/**
* @return array|null
*/
function getMeta() {
public function getMeta() {
return $this->meta;
}
/**
* @param array|null $meta
*/
function setMeta($meta) {
public function setMeta($meta) {
$this->meta = $meta;
}
}

View File

@ -45,42 +45,42 @@ class SegmentEntity {
/**
* @return string
*/
function getName() {
public function getName() {
return $this->name;
}
/**
* @param string $name
*/
function setName($name) {
public function setName($name) {
$this->name = $name;
}
/**
* @return string
*/
function getType() {
public function getType() {
return $this->type;
}
/**
* @param string $type
*/
function setType($type) {
public function setType($type) {
$this->type = $type;
}
/**
* @return string
*/
function getDescription() {
public function getDescription() {
return $this->description;
}
/**
* @param string $description
*/
function setDescription($description) {
public function setDescription($description) {
$this->description = $description;
}
}

View File

@ -84,120 +84,120 @@ class SendingQueueEntity {
/**
* @return array|null
*/
function getNewsletterRenderedBody() {
public function getNewsletterRenderedBody() {
return $this->newsletter_rendered_body;
}
/**
* @param array|null $newsletter_rendered_body
*/
function setNewsletterRenderedBody($newsletter_rendered_body) {
public function setNewsletterRenderedBody($newsletter_rendered_body) {
$this->newsletter_rendered_body = $newsletter_rendered_body;
}
/**
* @return string|null
*/
function getNewsletterRenderedSubject() {
public function getNewsletterRenderedSubject() {
return $this->newsletter_rendered_subject;
}
/**
* @param string|null $newsletter_rendered_subject
*/
function setNewsletterRenderedSubject($newsletter_rendered_subject) {
public function setNewsletterRenderedSubject($newsletter_rendered_subject) {
$this->newsletter_rendered_subject = $newsletter_rendered_subject;
}
/**
* @return string|null
*/
function getSubscribers() {
public function getSubscribers() {
return $this->subscribers;
}
/**
* @param string|null $subscribers
*/
function setSubscribers($subscribers) {
public function setSubscribers($subscribers) {
$this->subscribers = $subscribers;
}
/**
* @return int
*/
function getCountTotal() {
public function getCountTotal() {
return $this->count_total;
}
/**
* @param int $count_total
*/
function setCountTotal($count_total) {
public function setCountTotal($count_total) {
$this->count_total = $count_total;
}
/**
* @return int
*/
function getCountProcessed() {
public function getCountProcessed() {
return $this->count_processed;
}
/**
* @param int $count_processed
*/
function setCountProcessed($count_processed) {
public function setCountProcessed($count_processed) {
$this->count_processed = $count_processed;
}
/**
* @return int
*/
function getCountToProcess() {
public function getCountToProcess() {
return $this->count_to_process;
}
/**
* @param int $count_to_process
*/
function setCountToProcess($count_to_process) {
public function setCountToProcess($count_to_process) {
$this->count_to_process = $count_to_process;
}
/**
* @return array|null
*/
function getMeta() {
public function getMeta() {
return $this->meta;
}
/**
* @param array|null $meta
*/
function setMeta($meta) {
public function setMeta($meta) {
$this->meta = $meta;
}
/**
* @return ScheduledTaskEntity
*/
function getTask() {
public function getTask() {
return $this->task;
}
function setTask(ScheduledTaskEntity $task) {
public function setTask(ScheduledTaskEntity $task) {
$this->task = $task;
}
/**
* @return NewsletterEntity
*/
function getNewsletter() {
public function getNewsletter() {
return $this->newsletter;
}
function setNewsletter(NewsletterEntity $newsletter) {
public function setNewsletter(NewsletterEntity $newsletter) {
$this->newsletter = $newsletter;
}
}

View File

@ -28,7 +28,7 @@ class StatsNotificationEntity {
*/
private $task;
function __construct(NewsletterEntity $newsletter, ScheduledTaskEntity $task) {
public function __construct(NewsletterEntity $newsletter, ScheduledTaskEntity $task) {
$this->newsletter = $newsletter;
$this->task = $task;
}