mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-18 05:43:15 +03:00
domain tracking implementation fix cs
This commit is contained in:
parent
2d8283ea29
commit
4f8888daed
@ -23,7 +23,7 @@ final class ClickTracking
|
||||
public static function create(array $data): self
|
||||
{
|
||||
$model = new self();
|
||||
$model->active = !!($data['active'] ?? null);
|
||||
$model->active = (bool) ($data['active'] ?? null);
|
||||
|
||||
return $model;
|
||||
}
|
||||
@ -32,9 +32,6 @@ final class ClickTracking
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isActive(): bool
|
||||
{
|
||||
return $this->active;
|
||||
|
@ -23,7 +23,7 @@ final class OpenTracking
|
||||
public static function create(array $data): self
|
||||
{
|
||||
$model = new self();
|
||||
$model->active = !!($data['active'] ?? null);
|
||||
$model->active = (bool) ($data['active'] ?? null);
|
||||
|
||||
return $model;
|
||||
}
|
||||
@ -32,9 +32,6 @@ final class OpenTracking
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isActive(): bool
|
||||
{
|
||||
return $this->active;
|
||||
|
@ -42,25 +42,16 @@ final class TrackingResponse implements ApiResponse
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ClickTracking
|
||||
*/
|
||||
public function getClick(): ClickTracking
|
||||
{
|
||||
return $this->click;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return OpenTracking
|
||||
*/
|
||||
public function getOpen(): OpenTracking
|
||||
{
|
||||
return $this->open;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UnsubscribeTracking
|
||||
*/
|
||||
public function getUnsubscribe(): UnsubscribeTracking
|
||||
{
|
||||
return $this->unsubscribe;
|
||||
|
@ -25,7 +25,7 @@ final class UnsubscribeTracking
|
||||
public static function create(array $data): self
|
||||
{
|
||||
$model = new self();
|
||||
$model->active = !!($data['active'] ?? null);
|
||||
$model->active = (bool) ($data['active'] ?? null);
|
||||
$model->htmlFooter = $data['html_footer'] ?? '';
|
||||
$model->textFooter = $data['text_footer'] ?? '';
|
||||
|
||||
@ -36,25 +36,16 @@ final class UnsubscribeTracking
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isActive(): bool
|
||||
{
|
||||
return $this->active;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHtmlFooter(): string
|
||||
{
|
||||
return $this->htmlFooter;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTextFooter(): string
|
||||
{
|
||||
return $this->textFooter;
|
||||
|
@ -34,17 +34,11 @@ final class UpdateClickTrackingResponse implements ApiResponse
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getMessage(): ?string
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ClickTracking
|
||||
*/
|
||||
public function getClick(): ClickTracking
|
||||
{
|
||||
return $this->click;
|
||||
|
@ -34,17 +34,11 @@ final class UpdateOpenTrackingResponse implements ApiResponse
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getMessage(): ?string
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return OpenTracking
|
||||
*/
|
||||
public function getOpen(): OpenTracking
|
||||
{
|
||||
return $this->open;
|
||||
|
@ -34,17 +34,11 @@ final class UpdateUnsubscribeTrackingResponse implements ApiResponse
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getMessage(): ?string
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UnsubscribeTracking
|
||||
*/
|
||||
public function getUnsubscribe(): UnsubscribeTracking
|
||||
{
|
||||
return $this->unsubscribe;
|
||||
|
Loading…
x
Reference in New Issue
Block a user