public function id($id = null) { if (is_null($id)) { return $this->id; } $this->id = $id; return $this; }