for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace DaveRandom\LibLifxLan;
trait Options
{
private $options;
public function __construct(array $options = [])
$this->options = $options;
}
/**
* @param int $option
* @return mixed
*/
public function getOption(int $option)
return $this->options[$option] ?? null;
* @param mixed $value
* @return $this
public function setOption(int $option, $value): self
$this->options[$option] = $value;
return $this;