Lines Matching defs:id
96 * @param int $id
99 public function setColor($id, Color $color) {
100 $this->colors[$id] = $color;
106 * @param int $id position in the color array
109 public function getColor($id) {
110 if(isset($this->colors[$id])) return $this->colors[$id];
113 $this->colors[$id] = Color::random($id);
114 return $this->colors[$id];