Phue\Command\CreateGroup::lights PHP Method

lights() public method

Set lights
public lights ( array $lights = [] ) : self
$lights array List of light Ids or Light objects
return self This object
    public function lights(array $lights = array())
    {
        $this->lights = array();
        // Iterate through each light and append id to group list
        foreach ($lights as $light) {
            $this->lights[] = (string) $light;
        }
        return $this;
    }