for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\Fcm\Resources;
class Color implements FcmResource
{
/**
* @var float|null
*/
protected $red;
protected $green;
protected $blue;
protected $alpha;
* @return static
public static function create(): self
return new self;
}
* @return float|null
public function getRed(): ?float
return $this->red;
* @param float|null $red
* @return Color
public function setRed(?float $red): self
$this->red = $red;
return $this;
public function getGreen(): ?float
return $this->green;
* @param float|null $green
public function setGreen(?float $green): self
$this->green = $green;
public function getBlue(): ?float
return $this->blue;
* @param float|null $blue
public function setBlue(?float $blue): self
$this->blue = $blue;
public function getAlpha(): ?float
return $this->alpha;
* @param float|null $alpha
public function setAlpha(?float $alpha): self
$this->alpha = $alpha;
* {@inheritdoc}
public function toArray(): array
return [
'red' => $this->getRed(),
'green' => $this->getGreen(),
'blue' => $this->getBlue(),
'alpha' => $this->getAlpha(),
];