'json-array', // 🚫 CSV 형식 저장을 위해 제거 ]; public function getCustomTitle(): string { return $this->getTitleByFormat("%s[%s]", ['client', 'server_ip']); } public function getClient(): string { return $this->attributes['client']; } public function getSwitch(): string { return $this->attributes['switch']; } public function getServer(): string { return $this->attributes['server']; } public function getServerIP(): string { return $this->attributes['server_ip']; } //SwitchIP public function getIP(): string { return $this->attributes['ip']; } public function getInterface(): string { return $this->attributes['interface']; } public function getCommunity(): string { return $this->attributes['community'] ?? 'public'; } // Setter 예시: IP 주소 설정 시 유효성 검사 또는 로직 추가 가능 public function setIP(string $ip): void { // 예시: IP 주소 유효성 검사 로직 추가 가능 if (filter_var($ip, FILTER_VALIDATE_IP) === false) { throw new \InvalidArgumentException("유효하지 않은 IP 주소입니다."); } $this->attributes['ip'] = $ip; } }