Order=$order; $this->LineItem=$lineItem; $this->Entry=$entryData; } public function GetLabel(){ if(isset( $this->Entry->Label)) return $this->Entry->Label; else return ''; } public function GetFieldName(){ if(isset( $this->Entry->FieldName)) return $this->Entry->FieldName; else return ''; } public abstract function ToText(); public function ToHTML(){ return ''.\esc_html($this->ToText()).''; } public function __toString() { return $this->ToText(); } }