for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\Fcm\Resources;
class Notification implements FcmResource
{
/**
* @var string|null
*/
protected $title;
protected $body;
protected $image;
* @return string|null
public function getTitle(): ?string
return $this->title;
}
* @param string|null $title
* @return Notification
public function setTitle(?string $title): self
$this->title = $title;
return $this;
public function getBody(): ?string
return $this->body;
* @param string|null $body
public function setBody(?string $body): self
$this->body = $body;
public function getImage(): ?string
return $this->image;
* @param string|null $image
public function setImage(?string $image): self
$this->image = $image;
* @return static
public static function create(): self
return new self;
* {@inheritdoc}
public function toArray(): array
return [
'title' => $this->getTitle(),
'body' => $this->getBody(),
'image' => $this->getImage(),
];