public function __construct($id, $name, $r, $g, $b, $isBad = false) { $this->id = $id; $this->name = $name; $this->bad = (bool) $isBad; $this->setColor($r, $g, $b); }